-
Notifications
You must be signed in to change notification settings - Fork 14
Connection closed before receiving a handshake response #84
Comments
I would try with the default options like import io from 'socket.io-client';
const socket = io('http://localhost:8080'); And see if the same error happens. It also depends how the application is set up (did you configure |
Here is error when ai use default options:
Default method will be long-polling and it like we call api not found
|
It must be something with your setup which is much easier to investigate with a repository to reproduce the issue. |
Ok i will investigate more. For now, i'm using config socketIo in index.js like this
|
i'm also facing problem like you @huytran0605 this is the code of my front-end in .vue file
this is the code of my back-end in app.js file
|
I think it is a related to a bug in the version of socket.io used by @feathersjs/socket.io that is solved with the latest version of socket.io (2.1.0): socketio/socket.io#2294 |
I felt it might be something like that given the amount of issues around Socket.io and timeouts recently. I'll make a new patch release that will use that version. |
Currently, the code in server i use config like example.
But code in client, i'm using like this:
i got error like this on console
i search anything relate
handshake response
but i still can not connect socket.FYI, when i directly config socketio in
index.js
, i can connect.The text was updated successfully, but these errors were encountered: