endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.2k stars 158 forks source link

Silly question #80

Open BradfordATowle opened 1 year ago

BradfordATowle commented 1 year ago

EDIT: I am using two different instances of the websockt. (So I am not trying to use the same socket to connect twice) Can the native websocket have two seperate sockets open in a program. I want to connect to a server using IP:9000 and then a different piece of code needs to connect to the same IP:9001.

All platforms seem to work except for webgl.
Am I missing something?

in flight at once, probably just doing extra work printErr @ HTML.loader.js:80

HTML.framework.js:1784 Joining game ID 9001

HTML.framework.js:1775 WebSocketInvalidStateException: WebSocket is not in open state. at NativeWebSocket.WebSocket.SendText (System.String message) [0x00000] in <00000000000000000000000000000000>:0

HTML.framework.js:2766 WebSocket connection to 'ws://71.44.212.56:9001/' failed: Could not decode a text frame as UTF-8. _WebSocketConnect @ HTML.framework.js:2766 HTML.framework.js:1784 Joining game ID 9001

HTML.framework.js:1775 WebSocketInvalidStateException: WebSocket is not in open state. at NativeWebSocket.WebSocket.SendText (System.String message) [0x00000] in <00000000000000000000000000000000>:0