JavaScriptKit
JavaScriptKit copied to clipboard
WebSockets implementation
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.