Host HTTP and WS on the same port (#414)
* Quick hack to host HTTP and WS on the same port #373 * Quick hack to host HTTP and WS on the same port #373 - simplify code * ran clang-format Co-authored-by: En Shih <seanstone5923@gmail.com> Co-authored-by: The Artful Bodger <TheArtfulBodger@users.noreply.github.com>
This commit is contained in:
		@@ -16,8 +16,8 @@
 | 
			
		||||
#include "IXWebSocketHttpHeaders.h"
 | 
			
		||||
#include "IXWebSocketMessage.h"
 | 
			
		||||
#include "IXWebSocketPerMessageDeflateOptions.h"
 | 
			
		||||
#include "IXWebSocketSendInfo.h"
 | 
			
		||||
#include "IXWebSocketSendData.h"
 | 
			
		||||
#include "IXWebSocketSendInfo.h"
 | 
			
		||||
#include "IXWebSocketTransport.h"
 | 
			
		||||
#include <atomic>
 | 
			
		||||
#include <condition_variable>
 | 
			
		||||
@@ -128,7 +128,8 @@ namespace ix
 | 
			
		||||
        // Server
 | 
			
		||||
        WebSocketInitResult connectToSocket(std::unique_ptr<Socket>,
 | 
			
		||||
                                            int timeoutSecs,
 | 
			
		||||
                                            bool enablePerMessageDeflate);
 | 
			
		||||
                                            bool enablePerMessageDeflate,
 | 
			
		||||
                                            HttpRequestPtr request = nullptr);
 | 
			
		||||
 | 
			
		||||
        WebSocketTransport _ws;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user