Websocket
C# Methods for Core > Websocket
WebsocketBroadcastJson
Send a JSON payload to all clients connected to the Streamer.bot WebSocket Server
public void WebsocketBroadcastJson(string data)
WebsocketBroadcastString
Send a text string to all clients connected to the Streamer.bot WebSocket Server
public void WebsocketBroadcastString(string data)
WebsocketConnect
Connect a configured WebSocket client
public void WebsocketConnect(int connection = 0)
WebsocketCustomServerBroadcast
Broadcast a message to a custom WebSocket server
public void WebsocketCustomServerBroadcast(string data, string sessionId, int connection = 0)
WebsocketCustomServerCloseAllSessions
Disconnect all client sessions from a custom WebSocket server
public void WebsocketCustomServerCloseAllSessions(int connection = 0)
WebsocketCustomServerCloseSession
Disconnect a session from a custom WebSocket server
public void WebsocketCustomServerCloseSession(string sessionId, int connection = 0)
WebsocketCustomServerGetConnectionByName
Get the connection index of a custom WebSocket server
public int WebsocketCustomServerGetConnectionByName(string name)
WebsocketCustomServerIsListening
Check if a custom WebSocket server is currently listening for connections
public bool WebsocketCustomServerIsListening(int connection = 0)
WebsocketCustomServerStart
Start a custom WebSocket server
public void WebsocketCustomServerStart(int connection = 0)
WebsocketCustomServerStop
Stop a custom WebSocket server
public void WebsocketCustomServerStop(int connection = 0)
WebsocketDisconnect
Disconnect a configured WebSocket client
public void WebsocketDisconnect(int connection = 0)
WebsocketIsConnected
Check if a configured WebSocket client is connected
public bool WebsocketIsConnected(int connection = 0)
WebsocketSend
Send data over a configured WebSocket client
public void WebsocketSend(Byte[] data, int connection = 0)
public void WebsocketSend(string data, int connection = 0)
Â