Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Error in connecting to ws. #4

Open
alxgh opened this issue Apr 4, 2021 · 1 comment
Open

Error in connecting to ws. #4

alxgh opened this issue Apr 4, 2021 · 1 comment

Comments

@alxgh
Copy link

alxgh commented Apr 4, 2021

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants