You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use faye-websocket-node ^0.11.0 as client, sockjs-node 0.3.18 as server, please refer to below client/server code
Issue:
if client and server prefix matchs, like below code prefix = /hello, client will throw Error during WebSocket handshake: Unexpected response code: 200
I tried using prefix = / on the server, this time there won't be any error message, but there's no connection open, no message printed from either client or server on open or connection code
Question:
How to use faye-websocket-node as client, sockjs-node as server, and have them communicate via websock using node.js?
I'm trying to use
faye-websocket-node ^0.11.0
as client,sockjs-node 0.3.18
as server, please refer to below client/server codeIssue:
if client and server
prefix
matchs, like below codeprefix = /hello
, client will throwError during WebSocket handshake: Unexpected response code: 200
I tried using
prefix = /
on the server, this time there won't be any error message, but there's no connection open, no message printed from either client or serveron open or connection
codeQuestion:
How to use
faye-websocket-node
as client,sockjs-node
as server, and have them communicate via websock using node.js?Thanks!
client code:
server code:
The text was updated successfully, but these errors were encountered: