- java.lang.Object
-
- io.hotmoka.ws.client.WebSocketAdapter
-
public class WebSocketAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description WebSocketAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonConnected(WebSocket websocket, Map<String,List<String>> headers)voidonDisconnected(WebSocket websocket, WebSocketFrame serverCloseFrame, WebSocketFrame clientCloseFrame, boolean closedByServer)voidonError(WebSocket websocket, WebSocketException cause)voidonTextMessage(WebSocket websocket, String txtMessage)com.neovisionaries.ws.client.WebSocketAdaptertoNative()
-
-
-
Method Detail
-
toNative
public com.neovisionaries.ws.client.WebSocketAdapter toNative()
-
onConnected
public void onConnected(WebSocket websocket, Map<String,List<String>> headers) throws Exception
- Throws:
Exception
-
onDisconnected
public void onDisconnected(WebSocket websocket, WebSocketFrame serverCloseFrame, WebSocketFrame clientCloseFrame, boolean closedByServer) throws Exception
- Throws:
Exception
-
onError
public void onError(WebSocket websocket, WebSocketException cause) throws Exception
- Throws:
Exception
-
-