reorder methods in IXWebSocket.h

This commit is contained in:
Benjamin Sergeant 2021-03-07 19:25:53 -08:00
parent d739662a7c
commit 7c195219cd

View File

@ -48,7 +48,6 @@ namespace ix
void setUrl(const std::string& url); void setUrl(const std::string& url);
// send extra headers in client handshake request // send extra headers in client handshake request
void setHandshakeTimeout(int handshakeTimeoutSecs);
void setExtraHeaders(const WebSocketHttpHeaders& headers); void setExtraHeaders(const WebSocketHttpHeaders& headers);
void setPerMessageDeflateOptions( void setPerMessageDeflateOptions(
const WebSocketPerMessageDeflateOptions& perMessageDeflateOptions); const WebSocketPerMessageDeflateOptions& perMessageDeflateOptions);
@ -59,6 +58,7 @@ namespace ix
void enablePerMessageDeflate(); void enablePerMessageDeflate();
void disablePerMessageDeflate(); void disablePerMessageDeflate();
void addSubProtocol(const std::string& subProtocol); void addSubProtocol(const std::string& subProtocol);
void setHandshakeTimeout(int handshakeTimeoutSecs);
// Run asynchronously, by calling start and stop. // Run asynchronously, by calling start and stop.
void start(); void start();