make closeWireSize a default parameter of WebSocketTransport::close
This commit is contained in:
		| @@ -775,11 +775,6 @@ namespace ix | ||||
|         _lastSendTimePoint = std::chrono::steady_clock::now(); | ||||
|     } | ||||
|  | ||||
|     void WebSocketTransport::close(uint16_t code, const std::string& reason) | ||||
|     { | ||||
|         close(code, reason, 0); | ||||
|     } | ||||
|  | ||||
|     void WebSocketTransport::close(uint16_t code, const std::string& reason, size_t closeWireSize) | ||||
|     { | ||||
|         _requestInitCancellation = true; | ||||
|   | ||||
| @@ -81,7 +81,11 @@ namespace ix | ||||
|         WebSocketSendInfo sendText(const std::string& message, | ||||
|                                    const OnProgressCallback& onProgressCallback); | ||||
|         WebSocketSendInfo sendPing(const std::string& message); | ||||
|         void close(uint16_t code = 1000, const std::string& reason = "Normal closure"); | ||||
|  | ||||
|         void close(uint16_t code = 1000, | ||||
|                    const std::string& reason = "Normal closure", | ||||
|                    size_t closeWireSize = 0); | ||||
|  | ||||
|         ReadyStateValues getReadyState() const; | ||||
|         void setReadyState(ReadyStateValues readyStateValue); | ||||
|         void setOnCloseCallback(const OnCloseCallback& onCloseCallback); | ||||
| @@ -164,8 +168,6 @@ namespace ix | ||||
|         // No data was send through the socket for longer than the heartbeat period | ||||
|         bool heartBeatPeriodExceeded(); | ||||
|  | ||||
|         void close(uint16_t code, const std::string& reason, size_t closeWireSize); | ||||
|  | ||||
|         void sendOnSocket(); | ||||
|         WebSocketSendInfo sendData(wsheader_type::opcode_type type, | ||||
|                                    const std::string& message, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user