cleanup / use a websocket instead of raw websockettransport

This commit is contained in:
Benjamin Sergeant
2018-12-30 22:00:49 -08:00
parent a6a43bd361
commit 7710bf793f
6 changed files with 116 additions and 97 deletions

View File

@@ -98,6 +98,9 @@ namespace ix
std::string readyStateToString(ReadyState readyState);
static void invokeTrafficTrackerCallback(size_t size, bool incoming);
// Server
void setSocketFileDescriptor(int fd);
WebSocketTransport _ws;
std::string _url;
@@ -111,5 +114,7 @@ namespace ix
std::atomic<bool> _automaticReconnection;
std::thread _thread;
std::mutex _writeMutex;
friend class WebSocketServer;
};
}