close and stop with code and reason + docker = ubuntu xenial
This commit is contained in:
		@@ -99,8 +99,10 @@ namespace ix
 | 
			
		||||
 | 
			
		||||
        // Run asynchronously, by calling start and stop.
 | 
			
		||||
        void start();
 | 
			
		||||
 | 
			
		||||
        // stop is synchronous
 | 
			
		||||
        void stop();
 | 
			
		||||
        void stop(uint16_t code = 1000,
 | 
			
		||||
                  const std::string& reason = "Normal closure");
 | 
			
		||||
 | 
			
		||||
        // Run in blocking mode, by connecting first manually, and then calling run.
 | 
			
		||||
        WebSocketInitResult connect(int timeoutSecs);
 | 
			
		||||
@@ -112,7 +114,9 @@ namespace ix
 | 
			
		||||
        WebSocketSendInfo sendText(const std::string& text,
 | 
			
		||||
                                   const OnProgressCallback& onProgressCallback = nullptr);
 | 
			
		||||
        WebSocketSendInfo ping(const std::string& text);
 | 
			
		||||
        void close();
 | 
			
		||||
 | 
			
		||||
        void close(uint16_t code = 1000,
 | 
			
		||||
                   const std::string& reason = "Normal closure");
 | 
			
		||||
 | 
			
		||||
        // Set callback to receive websocket messages.
 | 
			
		||||
        // Be aware: your callback will be executed from websocket's internal thread!
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user