Add a listener for websocket events, if you want to remove the listener at a later time you need to keep the instance around.
Add a listener for websocket events, if you want to remove the listener at a later time you need to keep the instance around.
The io.backchat.hookup.WebSocketListener to add
this to allow for chaining
The callback method for when the client is connected
The callback method for when the client is connected
The client that connected.
The callback method for when the client is disconnected
The callback method for when the client is disconnected
The client that disconnected.
The callback method for when an error has occured
The callback method for when an error has occured
The client that received the message
The message it received the throwable if any, otherwise null
The callback method for when a json message has failed to be acknowledged.
The callback method for when a json message has failed to be acknowledged.
The client that received the message
The message it received
The callback method for when a json message has been received.
The callback method for when a json message has been received.
The client that received the message
The message it received
The callback method for when the client is reconnecting
The callback method for when the client is reconnecting
The client that is reconnecting.
The callback method for when a text message has failed to be acknowledged.
The callback method for when a text message has failed to be acknowledged.
The client that received the message
The message it received
The callback method for when a text message has been received.
The callback method for when a text message has been received.
The client that received the message
The message it received
The implementation of the receive handler for java clients.
The implementation of the receive handler for java clients. it notfies the listeners by iterating over all of them and calling the designated method.
The io.backchat.hookup.HookupClient.Receive message handler
Remove a listener for websocket events
Remove a listener for websocket events
The io.backchat.hookup.WebSocketListener to add
this to allow for chaining
Send a json message.
Send a json message. json
The message to send.
A scala.concurrent.Future with the io.backchat.hookup.OperationResult
Send a json message which expects an Ack.
Send a json message which expects an Ack. If the message isn't a json string it will throw a org.json4s.ParserUtil.ParseException
The message to send.
the scala.concurrent.duration.Duration as timeout for the ack operation
A scala.concurrent.Future with the io.backchat.hookup.OperationResult
Send a text message which expects an Ack.
Send a text message which expects an Ack. If the message is a json string it will still be turned into a json message
The message to send.
the scala.concurrent.duration.Duration as timeout for the ack operation
A scala.concurrent.Future with the io.backchat.hookup.OperationResult
Send a json message.
Send a json message. If the message isn't a json string it will throw a org.json4s.ParserUtil.ParseException
The message to send.
A scala.concurrent.Future with the io.backchat.hookup.OperationResult
Send a text message which expects an Ack.
Send a text message which expects an Ack. If the message is a json string it will still be turned into a json message
The message to send.
the scala.concurrent.duration.Duration as timeout for the ack operation
A scala.concurrent.Future with the io.backchat.hookup.OperationResult
A mixin for a io.backchat.hookup.HookupClient with helper methods for the java api. When mixed into a websocket it is a full implementation that notifies the registered io.backchat.hookup.WebSocketListener instances when events occur.