cleanup / use a websocket instead of raw websockettransport

This commit is contained in:
Benjamin Sergeant
2018-12-30 22:00:49 -08:00
parent 266cf93584
commit 379a845166
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;
};
}