make closeWireSize a default parameter of WebSocketTransport::close

This commit is contained in:
Benjamin Sergeant
2019-04-16 09:55:12 -07:00
parent b2aca491b6
commit b0f6026c23
2 changed files with 5 additions and 8 deletions

View File

@ -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,