WebsocketCustomServerGetConnectionByName
Get the connection index of a custom WebSocket server
Signature
public int WebsocketCustomServerGetConnectionByName(string name)
Parameters
name
string required
The configured name of the WebSocket server
Return Type
int
Example
using System;
public class CPHInline
{
public bool Execute()
{
//Get index of custom websocket server named "Test"
//Index is from top to bottom of the clients list, starting at 0
int index = CPH.WebsocketCustomServerGetConnectionByName("Test");
return true;
}
}