Created
October 28, 2013 19:52
-
-
Save XSockets/7203429 to your computer and use it in GitHub Desktop.
Custom Pipeline in XSockets.NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A module that lets you override the default behavior of incomming/outgoing messages | |
/// </summary> | |
public class MyPipeline : XSocketPipeline | |
{ | |
//Incomming textmessage | |
public override void OnMessage(IXSocketController controller, ITextArgs e) | |
{ | |
base.OnMessage(controller, e); | |
} | |
//Outgoing textmessage | |
public override ITextArgs OnSend(IXSocketProtocol protocol, ITextArgs e) | |
{ | |
return base.OnSend(protocol, e); | |
} | |
//Incomming binarymessage | |
public override void OnMessage(IXSocketController controller, IBinaryArgs e) | |
{ | |
base.OnMessage(controller, e); | |
} | |
//Outgoing binarymessage | |
public override IBinaryArgs OnSend(IXSocketProtocol protocol, IBinaryArgs e) | |
{ | |
return base.OnSend(protocol, e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment