Closed agarzas closed 5 years ago
forceWebsockets: true
is for ios I think android uses transports:['websocket']
I'll try adding a common prop for both platforms
It doesn't work in Angular. There is also no key called transports.
@triniwiz please help me
I solved my problem in this link. The problem was caused by my settings from Nginx.
https://github.com/socketio/socket.io/issues/1942#issuecomment-82352072
Which platform(s) does your issue occur on?
Is this plugin capable of establish connections through websockets only? If I set the socket.io sever as: transports: ['websocket'] I get a lot of logs saying:
engine intercepting request for path "/socket.io/" +34s engine handling "GET" http request "/socket.io/?EIO=3&token=ABC&transport=polling" +0ms engine unknown transport "polling" +0ms
Here is my code: `socket:SocketIO
this.socket.connect();
It only works when I set the server to accept 'polling' and then it can´t upgrade to websockets...