close with params

This commit is contained in:
Benjamin Sergeant
2019-05-01 11:29:50 -07:00
parent 12f6cd878d
commit 6bb00b6788
5 changed files with 419 additions and 4 deletions

View File

@@ -212,9 +212,10 @@ namespace ix
return getReadyState() == ReadyState::Closing;
}
void WebSocket::close()
void WebSocket::close(uint16_t code,
const std::string& reason)
{
_ws.close();
_ws.close(code, reason);
}
void WebSocket::checkConnection(bool firstConnectionAttempt)