Interface WebSocketAdapter
- All Known Implementing Classes:
JettyWebSocketAdapter
public interface WebSocketAdapter
Helper to have no direct dependency to the WebSockt client
implementation used by HtmlUnit.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidonWebSocketBinary(byte[] data, int offset, int length) voidonWebSocketClose(int statusCode, String reason) voidvoidonWebSocketConnectError(Throwable cause) voidvoidonWebSocketError(Throwable cause) voidonWebSocketText(String message) voidvoidstart()
-
Method Details
-
start
-
connect
-
send
- Throws:
IOException
-
closeIncommingSession
-
closeOutgoingSession
-
closeClient
-
onWebSocketConnecting
void onWebSocketConnecting() -
onWebSocketConnect
void onWebSocketConnect() -
onWebSocketClose
-
onWebSocketText
-
onWebSocketBinary
void onWebSocketBinary(byte[] data, int offset, int length) -
onWebSocketConnectError
-
onWebSocketError
-