Opens a WebSocket connection to a server and gives back a socket you can send and receive on.
This is a WebSocket client only - you can’t host a server with it.
Most commonly used to do things the Seliware sandbox can’t do on its own. Your script can’t open a browser window or touch the rest of the computer, but a small program running on the same machine can. The script talks to that program over a WebSocket and lets it do the work - for example, connect to a local server and send it a message every time the player picks up an item, so the local program opens a browser window.
Parameters
Returns
A WebSocket socket object with this surface:
Example
This is a WebSocket client only - you can’t host a server with it.