summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-24 18:00:36 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-24 18:00:36 -0800
commita8a438a09c9482829b2e6f4fa90cb929b7ac7056 (patch)
treeb96d4e86115fb6cfb4bde7e96baaee636a4c58bc
parent519cee1e81135b3b7db83aaf3928a40b063edbde (diff)
Defaulting outgoing websocket frames to text mode.
-rw-r--r--includes/BWebSocket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/BWebSocket.h b/includes/BWebSocket.h
index cf25684..0d0a56f 100644
--- a/includes/BWebSocket.h
+++ b/includes/BWebSocket.h
@@ -11,9 +11,9 @@ class WebSocketActionBase;
class WebSocketFrame {
public:
- WebSocketFrame(const String & str, uint8_t opcode, bool mask = false) : WebSocketFrame((uint8_t *) str.to_charp(), str.strlen(), opcode, mask) { }
- WebSocketFrame(size_t len, uint8_t opcode, bool mask = false) : WebSocketFrame(NULL, len, opcode, mask) { }
- WebSocketFrame(const uint8_t * data, size_t len, uint8_t opcode, bool mask = false);
+ WebSocketFrame(const String & str, uint8_t opcode = 1, bool mask = false) : WebSocketFrame((uint8_t *) str.to_charp(), str.strlen(), opcode, mask) { }
+ WebSocketFrame(size_t len, uint8_t opcode = 1, bool mask = false) : WebSocketFrame(NULL, len, opcode, mask) { }
+ WebSocketFrame(const uint8_t * data, size_t len, uint8_t opcode = 1, bool mask = false);
~WebSocketFrame() { free(m_data); }
uint8_t & operator[](size_t idx);
uint8_t * getPtr() { return m_data + m_headerSize; }