WebSocket 無法在 Run in Editor 中連線?

請問,CC 3.8.3 (其他版本沒試過) 在 Run in Editor下,是否無法進行 websocket 連線呢? 一直遇到websokcet.onerror,但 Run in Browser 就可以連線到S端。

I’m using ccc3.7.2, running in the editor and running in Google all can to connect to the server, but I’m using socketIo.
One thing you might want to look at is whether the editor is running c++ based webSocket cpp. That version is a very old version, I see 2.4 source code is like this, the new version I did not consult, in the browser is using the socket on the web so there is no problem, it is new

1赞

Thank for your suggestion. I will check which implementation of WebSocket is used in the edtior mode.

1赞