Superd22 / ngxs-socketio

socket io plugin for ngxs
GNU General Public License v3.0
0 stars 0 forks source link

socket io seems not handle the packet from the server #2

Open Enzo-bianchi opened 3 years ago

Enzo-bianchi commented 3 years ago

Hi, it's maybe a little old, but I'm trying to use Ngxs with websocket and Nest.js at the back-end. I discovered your plugin to use socket IO instead of ws library thank you for that :)

For now, I'm doing just a POC to see how it's working and I have a problem, when I send a payload, the client socket seems not subscribe when he receive the packet

image

He never go here, it's like the client receive nothing However, in the network section I have the payload

image

the server side code :

image

Versions of my dependencies

"@ngxs/websocket-plugin": "^3.7.1",
"ngxs-socketio-plugin": "^1.1.2",
"rxjs": "~6.6.0",
"socket.io-client": "^2.4.0"

For the part Ngxs State, I used the example from websocket : https://www.ngxs.io/plugins/websocket

Maybe you have an idea about why the subscribe is not working at all ? Thank you