ngx-socket-io
ngx-socket-io copied to clipboard
Error when connecting ngx-socket but works with webSocket
try to connect to the backend service in sockekio by extending the class with Socket

but it produces this error

after investigating the error and trying different solutions (unsuccessfully) try to connect using 'new WebSocket'.

and as you can see, it works correctly

I don't understand why this happens, because ngx-socket uses 'webSocket', so there is something wrong during the process.
(the image below is the error that I get when using ngx-socket)
