Issue 11: Added support for both binary and text frames

This commit is contained in:
JCash
2020-10-17 10:28:19 +02:00
parent ba2b8e4a69
commit 9d1ace0a82
5 changed files with 49 additions and 22 deletions

View File

@@ -66,6 +66,12 @@ namespace dmWebsocket
MESSAGE_TYPE_CLOSE = 1,
};
enum DataType
{
DATA_TYPE_BINARY = 0,
DATA_TYPE_TEXT = 1,
};
struct Message
{
uint32_t m_Length:30;