Replies: 1 comment
-
10:29:58 [ERROR]: JS: Failed to connect: Error: ws does not work in the browser. Browser clients must use the native WebSocket object |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a small game using the Cocos Creator 3.8.2 engine. The H5 version runs fine, but when I package it into a native Android app, various errors occur. My NetManager implementation is like the one shown in the image, but errors are being thrown. Could you please advise me on how to resolve this?
hostName = "cgames.1ktower.com";
//外网端口
port = 3001;
// 外网测试端口
// port = 3003;
roomName = "game";
useSSL = true;
client: Colyseus.Client;
room: Colyseus.Room;
isConnected:boolean = false;
Beta Was this translation helpful? Give feedback.
All reactions