TypeError: Cannot call method 'match' of undefined
at WebSocket.onSocketConnect (_\node_modules\socket.io\lib\transports\websocket\hybi-07-12.js:104:30)
at WebSocket.Transport.handleRequest (_\nodemodules\socket.io\lib\transport.js:71:10)
at WebSocket.Transport (**\vcc\nodemodules\socket.io\lib\transport.js:31:8)
at new WebSocket (**\nodemodules\socket.io\lib\transports\websocket\hybi-07-12.js:60:13)
at new WebSocket (**\nodemodules\socket.io\lib\transports\websocket.js:31:17)
at Manager.handleClient (**\nodemodules\socket.io\lib\manager.js:662:19)
at Manager.handleUpgrade (**\nodemodules\socket.io\lib\manager.js:618:8)
at HTTPServer. (**\node_modules\socket.io\lib\manager.js:123:10)
at HTTPServer.EventEmitter.emit (events.js:115:20)
at Socket.socket.ondata (http.js:1710:14)
For client side:
an Error occured
io.socket.SocketIOException: Error while handshaking
at io.socket.IOConnection.handshake(IOConnection.java:322)
at io.socket.IOConnection.access$7(IOConnection.java:292)
at io.socket.IOConnection$ConnectThread.run(IOConnection.java:199)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at io.socket.IOConnection.handshake(IOConnection.java:313)
... 2 more
Aug 5, 2013 10:26:04 AM io.socket.IOConnection cleanup
INFO: Cleanup
socket.io server (0.9.16) crashed when the java connect to it as demo code.
TypeError: Cannot call method 'match' of undefined at WebSocket.onSocketConnect (_\node_modules\socket.io\lib\transports\websocket\hybi-07-12.js:104:30) at WebSocket.Transport.handleRequest (_\nodemodules\socket.io\lib\transport.js:71:10) at WebSocket.Transport (**\vcc\nodemodules\socket.io\lib\transport.js:31:8) at new WebSocket (**\nodemodules\socket.io\lib\transports\websocket\hybi-07-12.js:60:13) at new WebSocket (**\nodemodules\socket.io\lib\transports\websocket.js:31:17) at Manager.handleClient (**\nodemodules\socket.io\lib\manager.js:662:19) at Manager.handleUpgrade (**\nodemodules\socket.io\lib\manager.js:618:8) at HTTPServer. (** \node_modules\socket.io\lib\manager.js:123:10)
at HTTPServer.EventEmitter.emit (events.js:115:20)
at Socket.socket.ondata (http.js:1710:14)
For client side:
an Error occured io.socket.SocketIOException: Error while handshaking at io.socket.IOConnection.handshake(IOConnection.java:322) at io.socket.IOConnection.access$7(IOConnection.java:292) at io.socket.IOConnection$ConnectThread.run(IOConnection.java:199) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at io.socket.IOConnection.handshake(IOConnection.java:313)
... 2 more
Aug 5, 2013 10:26:04 AM io.socket.IOConnection cleanup
INFO: Cleanup
Could you please take a look?