ngx-socket-io icon indicating copy to clipboard operation
ngx-socket-io copied to clipboard

Error when connecting ngx-socket but works with webSocket

Open Arti-23 opened this issue 3 years ago • 0 comments

try to connect to the backend service in sockekio by extending the class with Socket

image

but it produces this error

image

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

image

and as you can see, it works correctly

image

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) image

Arti-23 avatar Apr 26 '22 14:04 Arti-23