public static interface WebSocket.Handler
Modifier and Type | Method and Description |
---|---|
void |
connect(WebSocket ws)
Inside a connect event, you can listen for
WebSocket.onMessage(Callback) ,
WebSocket.onClose(Callback) or WebSocket.onError(ErrCallback) events. |
void connect(WebSocket ws) throws Exception
WebSocket.onMessage(Callback)
,
WebSocket.onClose(Callback)
or WebSocket.onError(ErrCallback)
events.
Also, you can send text and binary message.ws
- A web socket.Exception
- If something goes wrong while connecting.Copyright © 2015. All rights reserved.