oberstet/Autobahn — Issue #31: sendClose API
Author: oberstet
Created: 2011-10-23 18:55:53+00:00
State: open
Labels: bug, websocket

sendClose => 3 variants are needed:

1. user level
2. WS-internal level
3. fuzzing/raw level

1. restricts close code to 1000 and 3000-4999 like the browser client api

2. restricts close code to [CLOSE_STATUS_CODE_NORMAL,
CLOSE_STATUS_CODE_GOING_AWAY,
CLOSE_STATUS_CODE_PROTOCOL_ERROR,
CLOSE_STATUS_CODE_UNSUPPORTED_DATA,
CLOSE_STATUS_CODE_INVALID_PAYLOAD,
CLOSE_STATUS_CODE_POLICY_VIOLATION,
CLOSE_STATUS_CODE_MESSAGE_TOO_BIG,
CLOSE_STATUS_CODE_MANDATORY_EXTENSION]

3. does not restrict close code at all