Update dependency @hedgedoc/realtime to v0.0.5 (#2138)

* Update dependency @hedgedoc/realtime to v0.0.5

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Remove unneeded code

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
renovate[bot] 2022-06-20 12:22:35 +00:00 committed by GitHub
parent cf892a11a0
commit 96c0cfa566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 14 deletions

View file

@ -7,9 +7,9 @@
import {
encodeAwarenessUpdateMessage,
encodeCompleteAwarenessStateRequestMessage,
encodeDocumentUpdateMessage
encodeDocumentUpdateMessage,
WebsocketTransporter
} from '@hedgedoc/realtime'
import { WebsocketTransporter } from '@hedgedoc/realtime'
import type { Doc } from 'yjs'
import type { Awareness } from 'y-protocols/awareness'
@ -23,7 +23,6 @@ export class WebsocketConnection extends WebsocketTransporter {
this.bindAwarenessMessageEvents(awareness)
const websocket = new WebSocket(url)
this.setupWebsocket(websocket)
websocket.addEventListener('open', this.onOpen.bind(this))
}
private bindAwarenessMessageEvents(awareness: Awareness) {