public override void Publish(string channel, JToken data) { if (!IsConnected) { throw new InvalidOperationException("WebSocket not connected or bayeux session not initialized"); } Send(new { channel, data }); }