WebsocketBroadcastString

Send a text string to all clients connected to the Streamer.bot WebSocket Server

Signature

public void WebsocketBroadcastString(string data)

Parameters

data
string required

The text to send to connected clients

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Define data you want to send
        string data = "Hello, world!";

        //Broadcast data to clients
        CPH.WebsocketBroadcastString(data); 
        return true;
    }
}