node v0.5.0 pre Socket.IO crashes on connection (independent of transport)

我与影子孤独终老i 提交于 2019-12-24 05:57:51

问题


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:


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



来源:https://stackoverflow.com/questions/6329881/node-v0-5-0-pre-socket-io-crashes-on-connection-independent-of-transport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!