reject method
Fails the handshake with HTTP statusCode.
Implementation
void reject(int statusCode, {Map<String, String> headers = const {}}) => fail(
WebSocketHandshakeException(
'Unexpected HTTP status $statusCode',
statusCode: statusCode,
headers: headers,
),
);