I have a problem with socket.io-client normaly when I connect my clientWS to ServerWalks so this loop Attempts to connect in even if ServerWS is not started.
I tried to do it in a simple node app and it works, but when I am trying to include it in another project, I found this error:
< Pre> ... / node_modules / socket.io-client / lib / manager.js: 75 this. NPS [nsp] .emit.apply (this.nsps [nsp], logic); ^ TypeError: null._onTimeout on manager.mate all (... / node_modules / socket.io-client / lib / manager.js: 75: 25) undefined method 'apply' call to / node_modules / socket Can be done .i-client / lib / manager.js: 464: 12) timer.listOnTimeout [astimeout] (timers.js: 110: 15) 16 March 21:54:03 - [nodomnon] ap crashed - Waiting for file changes before getting started ...
And both of these projects have the same connection code:
var socket = Required ("socket.io-client"); Var ws = socket ("http: // localhost: 3000");
So I do not know what the problem is ...
(tested with socket.io and socket.io-client 1.3.5) < / P>
No comments:
Post a Comment