websocket: Add documentation for WebSocketState

Related to #102
Websocket: Only send when the socket is open.

Sending used to be allowed in state CLOSING, which could result in an
assertion failure during finalize.

Fixes #102.

Signed-off-by: Stef Walter <stefw@redhat.com>