我刚刚尝试运行socket.io 0.8.7的聊天示例,它可以在我的PC(WinXP SP3)上使用IE 8。但是,在Chrome 16或FF 9上运行时,该页面仅显示“正在连接到socket.io服务器”。
控制台上显示了一些日志:
app listening on http://0.0.0.0:3000
debug - served static content /socket.io.js
debug - client authorized
info - handshake authorized 1463707665737450199
debug - setting request GET /socket.io/1/websocket/1463707665737450199
debug - set heartbeat interval for client 1463707665737450199
debug - client authorized for
debug - websocket writing 1::
debug - setting request GET /socket.io/1/xhr-polling/1463707665737450199?t=13
27157804923
debug - setting poll timeout
debug - discarding transport
debug - cleared heartbeat interval for client 1463707665737450199
debug - setting request GET /socket.io/1/jsonp-polling/1463707665737450199?t=
1327157814924&i=0
debug - setting poll timeout
debug - discarding transport
debug - clearing poll timeout
debug - clearing poll timeout
debug - jsonppolling writing io.j[0]("8::");
debug - set close timeout for client 1463707665737450199
debug - jsonppolling closed due to exceeded duration
debug - setting request GET /socket.io/1/jsonp-polling/1463707665737450199?t=
1327157834951&i=0
debug - setting poll timeout
debug - discarding transport
debug - cleared close timeout for client 1463707665737450199
debug - clearing poll timeout
debug - jsonppolling writing io.j[0]("8::");
debug - set close timeout for client 1463707665737450199
debug - jsonppolling closed due to exceeded duration
我是socket.io的100%新手,所以我不知道它有什么问题。希望得到你的帮助。
谢谢&最好的考虑,