Skip to content

Commit 37f3a90

Browse files
committed
feat: expose socket in LoroWebsocketClient
1 parent b2036d5 commit 37f3a90

File tree

1 file changed

+4
-0
lines changed
  • packages/loro-websocket/src/client

1 file changed

+4
-0
lines changed

packages/loro-websocket/src/client/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ export class LoroWebsocketClient {
147147
void this.connect();
148148
}
149149

150+
get socket(): WebSocket {
151+
return this.ws;
152+
}
153+
150154
private ensureConnectedPromise(): void {
151155
if (this.resolveConnected) return;
152156
this.connectedPromise = new Promise<void>((resolve, reject) => {

0 commit comments

Comments
 (0)