[LayaAir 1.0]websockt 连接问题
我打算用 laya的websocket 连接tomcat服务器
this.socket.connectByUrl("ws://localhost:8080");
但是连接之后一直显示报错
laya.core.js:13674 WebSocket connection to 'ws://localhost:8080/' failed: Error during WebSocket handshake: Unexpected response code: 200
浏览器会报这个错误,我tomcat 已启动 输出localhost:8080 能打开官方地址的
this.socket.connectByUrl("ws://localhost:8080");
但是连接之后一直显示报错
laya.core.js:13674 WebSocket connection to 'ws://localhost:8080/' failed: Error during WebSocket handshake: Unexpected response code: 200
浏览器会报这个错误,我tomcat 已启动 输出localhost:8080 能打开官方地址的
没有找到相关结果
已邀请:
要回复问题请先登录
0 个回复