Skip to content

Commit

Permalink
fix wscheck
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 63b9623 commit ccb48d0
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 && doc.conns.has(origin);
const isOriginWSConn = origin instanceof WebSocket;
console.log('Origin: ', origin);
console.log('doc.conns: ', doc.conns);
console.log('Update Handler, isOriginWSConn: ', isOriginWSConn);
Expand Down

0 comments on commit ccb48d0

Please sign in to comment.