node v0.5.0 pre Socket.IO crashes on connection (i

2019-07-27 23:06发布

When I try to connect to socket.io it crashes with the following error message:

Initializing client with transport "websocket"
node: ../src/node.cc:1212: ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding): Assertion `b[1] == 0' failed.
Aborted

This happens when I try to start up the node chat example. (server.js file in the example folder). The installed socket.io version is the current version installed by using npm install socket.io.

Does anyone know what the reason for this crashing might be? How can fix it?

Fixed -- Turns out I was running node v0.5.0 pre which apparently is not (yet) compatible with socket.io.

1条回答
Juvenile、少年°
2楼-- · 2019-07-27 23:58

Turns out I was running node v0.5.0 pre which apparently is not (yet) compatible with socket.io

查看更多
登录 后发表回答