Skip to content

Commit

Permalink
fix extracting channelId
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Wiaderek authored and Tomasz Wiaderek committed Nov 14, 2023
1 parent 0f756b2 commit ad2255f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class TldrawWsService {
* @param {WsSharedDocDo} doc
*/
public updateHandler(update: Uint8Array, origin, doc: WsSharedDocDo): void {
const isOriginWSConn = origin instanceof WebSocket;
const isOriginWSConn = doc.conns.has(origin as WebSocket);
console.log('Origin: ', origin);
console.log('doc.conns: ', doc.conns);
console.log('Update Handler, isOriginWSConn: ', isOriginWSConn);
Expand Down

0 comments on commit ad2255f

Please sign in to comment.