The server sent a close frame, no more calls to the listener are made.
An error happened, no more calls to the listener are made.
A data message has been received.
A text message has been received.
The HTTP 101 Switching Protocols response has been received and is valid.