V
V
Valeriu2017-12-28 14:02:28
Angular
Valeriu, 2017-12-28 14:02:28

Why doesn't socket.io work on iOS and Firefox?

Good afternoon.
I use feathers/client + socket.io-client and when connecting to the front I use this code:

this._socket = io(environment.domain.api, {
      transports: ['websocket']
});
this._socket.on('reconnect_attempt', () => {
      this._socket.io.opts.transports = ['polling', 'websocket'];
});

On the backend I use feathers, on the frontend I use Angular.
Here is the error that shows up in Firefox:
5a44cf0c43ea7428428345.png
5a44cf1716fc5587476354.png
If anyone is interested in checking, you can open leo.md in Firefox.
Does anyone know why sockets don't work on iOS and Firefox?

Thanks in advance for your replies, if any.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valeriu, 2017-12-28
@vodniciarv

Thanks to Aleksey Ukolov , I found https://github.com/webcomponents/webcomponentsjs and solved the problem.
The sockets didn't work because there was another error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question