JavaScriptKit icon indicating copy to clipboard operation
JavaScriptKit copied to clipboard

WebSockets implementation

Open Jomy10 opened this issue 3 years ago • 0 comments

I am trying to open a WebSocket in JavaScriptKit.

I have found a related issue on this, but the implementation did not work for me.

I currently have let socket = JSObject.global.WebSocket.function!. When I print it out, I get a value.

But I don't know how to go from here?

How do I send and receive data with this socket? I've tried some things, but nothing that would compile.

Jomy10 avatar Mar 17 '22 21:03 Jomy10