aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/protocolwebsocket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/protocolwebsocket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/protocolwebsocket.h b/src/unstable/protocolwebsocket.h
index 6778ea5..e5ff804 100644
--- a/src/unstable/protocolwebsocket.h
+++ b/src/unstable/protocolwebsocket.h
@@ -35,6 +35,12 @@ namespace Bu
35 virtual void onNewConnection( Bu::Client *pClient ); 35 virtual void onNewConnection( Bu::Client *pClient );
36 virtual void onNewData( Bu::Client *pClient ); 36 virtual void onNewData( Bu::Client *pClient );
37 37
38 /**
39 * Return true to continue the connection, return false to disconnect.
40 * Feel free to modify the headers out list to add or remove http
41 * headers to go to the client.
42 */
43 virtual bool onProcessHeaders( Bu::StringList &lHeadersOut );
38 virtual void onHandshakeComplete()=0; 44 virtual void onHandshakeComplete()=0;
39 virtual void onNewMessage( const Bu::String &sData, Operation eOp )=0; 45 virtual void onNewMessage( const Bu::String &sData, Operation eOp )=0;
40 void writeMessage( const Bu::String &sData, Operation eOp=Text ); 46 void writeMessage( const Bu::String &sData, Operation eOp=Text );