WebSocketConnection
Represents endpoint of WebSocket connection.
- Constructor
Create WebSocket connection using supplied socket.
class Object
trait Matchable
class Any
Value members
Concrete methods
Closes WebSocket connection.
Closes WebSocket connection.
- Note
This method does NOT send a Close frame. The user is responsible for sending an appropriate Close frame before invoking this method.
Reads next frame from WebSocket connection.
Reads next frame from WebSocket connection.
- Value Params
- timeout
timeout in milliseconds of any read operation;
0
is interpreted as indefinite
- Throws
- WebSocketError
if frame is invalid or otherwise unreadable
- java.io.EOFException
if unexpected EOF occurs
- java.io.InterruptedIOException
if timeout is exceeded
- Note
This method is synchronized on the WebSocket's input channel, permitting only one read request at a time.