merge and remove useless comments

This commit is contained in:
Alexandre Konieczny 2019-04-23 14:37:55 +02:00
commit 37c639387f
2 changed files with 3 additions and 3 deletions

View File

@ -560,7 +560,6 @@ namespace ix
bool remote = true; bool remote = true;
//std::cout << this << " CLOSE FROM REMOTE" << code << " / " << reason << std::endl;
internalClose(code, reason, _rxbuf.size(), remote); internalClose(code, reason, _rxbuf.size(), remote);
} }
else else
@ -877,7 +876,7 @@ namespace ix
} }
} }
void WebSocketTransport::close(uint16_t code, const std::string& reason, size_t closeWireSize) void WebSocketTransport::close(uint16_t code, const std::string& reason, size_t closeWireSize, bool remote)
{ {
_requestInitCancellation = true; _requestInitCancellation = true;

View File

@ -87,7 +87,8 @@ namespace ix
void close(uint16_t code = 1000, void close(uint16_t code = 1000,
const std::string& reason = "Normal closure", const std::string& reason = "Normal closure",
size_t closeWireSize = 0); size_t closeWireSize = 0,
bool remote = false);
ReadyStateValues getReadyState() const; ReadyStateValues getReadyState() const;
void setReadyState(ReadyStateValues readyStateValue); void setReadyState(ReadyStateValues readyStateValue);