public override async Task <IMessage> OnOutgoingMessage(IXSocketController controller, IMessage e) { Composable.GetExport <IXLogger>().Information("Outgoing data: {@m}", e); return(await base.OnOutgoingMessage(controller, e)); }
public OnHandshakeInvalidArgs(IXSocketController controller, string handshake) { Controller = controller; Handshake = handshake; }
public override async Task<IMessage> OnOutgoingMessage(IXSocketController controller, IMessage e) { Composable.GetExport<IXLogger>().Information("Outgoing data: {@m}", e); return await base.OnOutgoingMessage(controller, e); }
public override async Task OnIncomingMessage(IXSocketController controller, IMessage e) { Composable.GetExport <IXLogger>().Information("Incoming data: {@m}", e); await base.OnIncomingMessage(controller, e); }
public override IMessage OnOutgoingMessage(IXSocketController controller, IMessage e) { Composable.GetExport<IXLogger>().Debug("Outgoing data: {@m}", e); return base.OnOutgoingMessage(controller, e); }
public override async Task OnIncomingMessage(IXSocketController controller, IMessage e) { Composable.GetExport<IXLogger>().Information("Incoming data: {@m}",e); await base.OnIncomingMessage(controller, e); }
public override IMessage OnOutgoingMessage(IXSocketController controller, IMessage e) { Composable.GetExport <IXLogger>().Debug("Outgoing data: {@m}", e); return(base.OnOutgoingMessage(controller, e)); }
//private const byte RESERVED_FLAG_OFFSET = 0x00; //private const byte RESERVED_FLAG_SIZE = 0x01; #endregion public static void MqttPublish(this IXSocketController controller, string topic, byte[] data, QoS qosLevel = QoS.FireAndForget, bool retain = false) { Composable.GetExport <IMqttBridge>().PublishToMqttClients(new MqttMsgPublish(topic, data, false, (byte)qosLevel, retain)); }
public OnHandshakeCompleteArgs(IXSocketController controller, string handshake) { Controller = controller; Handshake = handshake; }
public override void OnIncomingMessage(IXSocketController controller, IMessage e) { Composable.GetExport <IXLogger>().Debug("Incoming data: {@m}", e); base.OnIncomingMessage(controller, e); }
public OnClientConnectArgs(IXSocketController controller) { Controller = controller; }
//Incomming textmessage public override void OnMessage(IXSocketController controller, ITextArgs e) { Console.WriteLine("IN " + e.data); //Let the message continue into the server base.OnMessage(controller, e); }
public static void MqttPublish(this IXSocketController controller, string topic, object obj, QoS qosLevel = QoS.FireAndForget, bool retain = false) { var data = Encoding.UTF8.GetBytes(controller.JsonSerializer.SerializeToString(obj)); Composable.GetExport <IMqttBridge>().PublishToMqttClients(new MqttMsgPublish(topic, data, false, (byte)qosLevel, retain)); }
public override void OnIncomingMessage(IXSocketController controller, IMessage e) { Composable.GetExport<IXLogger>().Debug("Incoming data: {@m}", e); base.OnIncomingMessage(controller, e); }