【发布时间】:2014-02-27 19:41:27
【问题描述】:
我是 socket.io 的新手,我试图在浏览器上查看结果。所以在我的浏览器上输入 url http://api.mysite.com:8000/socket.io/1?username=xxx&secret=xxx 结果到:
u7JFbWkd79ahrmMghows:60:60:websocket,htmlfile,xhr-polling,jsonp-polling
这是否意味着我已连接到服务器?因为当我为我的用户名和密码提供错误凭据时,它会输出 握手错误。
【问题讨论】:
-
Because when I provide the wrong credentials for my username and secret it outputs a handshake error-- 想象一下。 -
是的,我知道这听起来很愚蠢,但我忘了提,即使我得到了一个字符串输出(我假设它是连接的。)“u7JFbWkd79ahrmMghows:60:60:websocket,htmlfile ,xhr-polling,jsonp-polling" 我的 android 客户端说它有错误并且没有连接。