- All Known Implementing Classes:
JettyWebSocketAdapter
public interface WebSocketAdapter
Helper to have no direct dependency to the WebSockt client
implementation used by HtmlUnit.
- Author:
- Ronald Brill
-
Method Details
-
start
Starts the client.- Throws:
Exception- in case of error
-
connect
Connects to the givenURI.- Parameters:
url- the target url- Throws:
Exception- in case of error
-
send
Sends the provided content.- Parameters:
content- the content to be sent- Throws:
IOException- in case of error
-
closeIncomingSession
Close the incoming session.- Throws:
Exception- in case of error
-
closeOutgoingSession
Close the outgoing session.- Throws:
Exception- in case of error
-
closeClient
Close the client.- Throws:
Exception- in case of error
-