tinode / typescript-sdk

Tinode typescript and javascript SDK
Apache License 2.0
12 stars 6 forks source link

Error in connecting to ws. #4

Open alxgh opened 3 years ago

alxgh commented 3 years ago

While attempting to connect using the ws client I encountered this error:

tinode.service.ts:45 DOMException: Failed to construct 'WebSocket': The subprotocol '[object Object]' is invalid
t = new Tinode("", "", {...});
t.connect()
WWQ-CODE commented 2 years ago

While attempting to connect using the ws client I encountered this error:

tinode.service.ts:45 DOMException: Failed to construct 'WebSocket': The subprotocol '[object Object]' is invalid
t = new Tinode("", "", {...});
t.connect()

ws-connection.ts const conn: WebSocket = new NetworkProviders.WebSocket(url, { rejectUnauthorized: false, }) eliminate the second parameter, and try again