Handle inbound InboundMessage instances
Handle inbound InboundMessage instances
a io.backchat.hookup.HookupClient.Receive as message handler
Send a message to the server.
Send a message to the server.
The OutboundMessage to send
A akka.dispatch.Future with the OperationResult
A flag indicating whether this websocket client can fallback to buffering.
A flag indicating whether this websocket client can fallback to buffering.
whether this websocket client can fallback to buffering or not.
Connect to the server.
Connect to the server.
A akka.dispatch.Future with the OperationResult
Disconnect from the server.
Disconnect from the server.
A akka.dispatch.Future with the OperationResult
The execution context for futures within this client.
The execution context for futures within this client.
The akka.dispatch.ExecutionContext
A flag indicating connection status.
A flag indicating connection status.
a boolean indicating connection status
Reconnect to the server.
Reconnect to the server.
A akka.dispatch.Future with the OperationResult
Send a message to the server.
Send a message to the server.
The OutboundMessage to send
A akka.dispatch.Future with the OperationResult
The configuration of this client.
The configuration of this client.
The HookupClientConfig as configuration object
Usage of the simple websocket client:
new DefaultHookupClient(HookupClientConfig(new URI("ws://localhost:8080/thesocket"))) { def receive = { case Disconnected(_) ⇒ println("The websocket to " + uri.toASCIIString + " disconnected.") case TextMessage(message) ⇒ { println("RECV: " + message) send("ECHO: " + message) } } connect() onSuccess { case Success ⇒ println("The websocket is connected.") case _ ⇒ } }