WebsocketDisconnect

Disconnect a configured WebSocket client

Signature

public void WebsocketDisconnect(int connection = 0)

Parameters

connection
int
Default:
0

No description provided.

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Disconnect the websocket client with index 0
        //Index is from top to bottom of the clients list, starting at 0
        CPH.WebsocketDisconnect(0); 
        return true;
    }
}