public void HandshakeCompleted(IXSocketProtocol protocol) { }
public void Connected(IXSocketProtocol protocol) { }
public void OnIncomingMessage(IXSocketProtocol protocol, IMessage message) { InPerSecCounter.IncrementBy(1); }
public void OnOutgoingMessage(IXSocketProtocol protocol, IMessage message) { OutPerSecCounter.IncrementBy(1); }
public void Disconnected(IXSocketProtocol protocol) { //Composable.GetExport<IXLogger>().Information("Client disconnected"); }
public void Connected(IXSocketProtocol protocol) { //Composable.GetExport<IXLogger>().Information("New connection from {c}",protocol.Socket.RemoteIpAddress); }
public void OnOutgoingMessage(IXSocketProtocol protocol, IMessage message) { Console.WriteLine("Out {0}", message); }
public void OnIncomingMessage(IXSocketProtocol protocol, IMessage message) { Console.WriteLine("In {0}", message); }
//Outgoing textmessage public override ITextArgs OnSend(IXSocketProtocol protocol, ITextArgs e) { Console.WriteLine("OUT " + e.data); return(base.OnSend(protocol, e)); }