Open trunggn opened 5 years ago
Can you check if your signalling server is based on socket.io, cause Socket.io and Websocket client can not communicate. This is what Socket.io official doc says
Although Socket.IO indeed uses WebSocket as a transport when possible, it adds additional metadata to each packet. That is why a WebSocket client will not be able to successfully connect to a Socket.IO server, and a Socket.IO client will not be able to connect to a plain WebSocket server either.
I use below code to connect to secure websocket server (wss)
It work fine when connect to "wss://demos.kaazing.com/echo" but error when connect to "wss://bot.fpt.ai/ws/livechat"