2

使用来自http://cdn.socket.io/stable/socket.io.js的 socket.io.js 的稳定版本,并尝试在 google chromium 和 firefox 上建立连接。

var websocket = io.connect("http://nodetifications.no-ip.org:3030");
websocket.emit("usuarioConectado", "juanvilu" );</code>

显示以下错误:

Uncaught TypeError: Object # has no method <Object> 'connect'
(anonymous function)
(anonymous function) jquery-latest.js: 586
jquery-latest.js jQuery.extend.globalEval: 587
jquery-latest.js jQuery.fn.extend.domManip: 6169
a.fn.extend.domManip jquery.tmpl.min.js: 10
jquery-latest.js jQuery.fn.extend.append: 5926
(anonymous function) jquery-latest.js: 6051
jquery-latest.js jQuery.extend.access: 835
jquery-latest.js jQuery.fn.extend.html: 6015
(anonymous function)
jquery-latest.js fire: 1017
jquery-latest.js self.fireWith: 1127
jquery-latest.js done: 8021
callback
4

0 回答 0