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 6c9a737
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/docprovider/src/awareness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import { User } from '@jupyterlab/services';

import { IDisposable } from '@lumino/disposable';
import { IStream, Stream } from '@lumino/signaling';

import { IAwareness } from '@jupyter/ydoc';

Expand All @@ -17,12 +16,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 +43,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 +66,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 6c9a737

Please sign in to comment.