Skip to content

Commit

Permalink
Add let onMessage (from mock server) receive the auth message
Browse files Browse the repository at this point in the history
  • Loading branch information
AAAMON authored Jul 22, 2024
1 parent 535d801 commit 7c62677
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ export class DocEditor implements DocEditorInterface {
this.fromOOHandler.setHandler((msg) => {
if (msg.type == "auth") {
this.handleAuth(msg);
} else {
this.server.onMessage(msg);
}
this.server.onMessage(msg);
});
}

Expand Down

0 comments on commit 7c62677

Please sign in to comment.