Creates internal websocket listener.
Creates internal websocket listener.
This method creates the scalawebsocket.WebSocketListener and runs proper handlers on messages sent by that created listener.
an instance of scalawebsocket.WebSocketListener
Open a websocket to the specified url
Open a websocket to the specified url
url to connecto to
Closes the underlying com.ning.http.client.AsyncHttpClient client.
Closes the underlying com.ning.http.client.AsyncHttpClient client.
This method is terminating the chain. After calling it, this instance of scalawebsocket.WebSocket is no longer useable.
WebSocket wrapper for com.ning.http.client.AsyncHttpClient
This is a thin wrapper for com.ning.http.client.AsyncHttpClient that exposes a functional API for attaching handlers to events that com.ning.http.client.AsyncHttpClient exposes.
You can chain nearly every method in this class. The single exception is the shutdown() method, which ends the life of this websocket. After executing it, you need to create a new instance of scalawebsocket.WebSocket