Custom Server

C# Methods for Core > Websocket > Custom Server

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)