public class HmtpWebSocketListener extends AbstractWebSocketListener
Constructor and Description |
---|
HmtpWebSocketListener(Broker broker) |
Modifier and Type | Method and Description |
---|---|
void |
onDisconnect(WebSocketContext context)
Called when the connection terminates.
|
void |
onReadBinary(WebSocketContext context,
java.io.InputStream is)
Reads the next HMTP packet from the stream, returning false on
end of file.
|
void |
onStart(WebSocketContext context)
Called when the connection is established
|
java.lang.String |
toString() |
onClose, onReadText, onTimeout
public HmtpWebSocketListener(Broker broker)
public void onStart(WebSocketContext context)
AbstractWebSocketListener
onStart
in interface WebSocketListener
onStart
in class AbstractWebSocketListener
public void onReadBinary(WebSocketContext context, java.io.InputStream is) throws java.io.IOException
onReadBinary
in interface WebSocketListener
onReadBinary
in class AbstractWebSocketListener
java.io.IOException
public void onDisconnect(WebSocketContext context)
AbstractWebSocketListener
onDisconnect
in interface WebSocketListener
onDisconnect
in class AbstractWebSocketListener
public java.lang.String toString()
toString
in class java.lang.Object