Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Sep 9, 2024
1 parent b7e9a18 commit 66d91ea
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/docprovider/src/awareness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ export interface IContent {
body: string;
}

export interface IChatMessage {
sender: string;
timestamp: number;
content: IContent;
}

/**
* A class to provide Yjs synchronization over WebSocket.
*
Expand Down Expand Up @@ -50,21 +44,12 @@ export class WebSocketAwarenessProvider
.then(() => this._onUserChanged(this._user))
.catch(e => console.error(e));
this._user.userChanged.connect(this._onUserChanged, this);

this._messageStream = new Stream(this);
}

get isDisposed(): boolean {
return this._isDisposed;
}

/**
* A signal to subscribe for incoming messages.
*/
get messageStream(): IStream<this, IChatMessage> {
return this._messageStream;
}

dispose(): void {
if (this._isDisposed) {
return;
Expand All @@ -82,8 +67,6 @@ export class WebSocketAwarenessProvider
private _isDisposed = false;
private _user: User.IManager;
private _awareness: IAwareness;

private _messageStream: Stream<this, IChatMessage>;
}

/**
Expand Down

0 comments on commit 66d91ea

Please sign in to comment.