简体   繁体   中英

WebSocket connection error using socket.io

Trying to run node.js and socket.io for the first time but I'm keep getting this error:

WebSocket connection to 
'ws://localhost:8080/socket.io/1/websocket/1826726211257272865'   
failed: Connection closed before receiving a handshake response 

in every example what I try and I can't figure out why. Any ideas ?

就我而言,问题是我没有安装Express Web框架。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM