Hello, I'm trying to connect to my web socket server with javascript inside C3. Usually, I would use WebSockets action (WebSocket->Connect(URL, protocol)) and it would work fine but now I'm trying to do the same thing with js. I'm unable to understand API for objects like WebSocket and how to use it. I can log it
const socket = runtime.objects.WebSocket;
console.log(socket);
but how do I use it now? socket.connect("url","protocol")?
It would help me a lot if anyone can share how and where we can see the correct API to use with js since internal IntelliSense is really messy.
Thank you!