WebsocketSend

Send data over a configured WebSocket client

Signature

public void WebsocketSend(string data, int connection = 0)

Parameters

data
string required

The data to send

connection
int
Default:
0

No description provided.

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Send "Hello, world!" over the custom Websocket Client with index 0
        //Index is from top to bottom of the clients list, starting at 0
        CPH.WebsocketSend("Hello, world!", 0); 
        return true;
    }
}