mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 12:34:45 -04:00
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:
parent
cf892a11a0
commit
96c0cfa566
3 changed files with 13 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue