public void WebsocketBroadcastJson(string data)
The stringified JSON payload to send to clients
void
using System;
public class CPHInline
{
public bool Execute()
{
//Define data you want to send
string json = "{\"foo\":\"bar\"}";
//Broadcast data to clients
CPH.WebsocketBroadcastJson(data);
return true;
}
}