.newWebsocket()
Description
newWebsocket allows you to create a new websocket connection.
Parameters
newWebsocket takes no parameters.
Usage
ws = "wss://url:port".newWebsocket()
// creates a new websocket connection and returns the id of the websocket connection allowing for other websocket commands to interact with it
ws = "wss://rotur.mistium.com:443".newWebsocket()
// returns a websocket id that can be used for other websocket commands
ws = "ws://localhost:443".newWebsocket()
// connect to a websocket thats on your local machine
Last updated
Was this helpful?