public static interface WebSockets.SocketListener
Modifier and Type | Method and Description |
---|---|
void |
bytesMessage(InputStream in)
Called when a binary media type message is received
|
void |
close()
Called when the stream is closed.
|
void |
failure(Throwable t)
Called when there has been a failure
|
void |
open(String protocol,
okhttp3.WebSocket socket)
Called when the socket is opened
|
void |
textMessage(Reader in)
Called when a text media type message is received
|
void open(String protocol, okhttp3.WebSocket socket)
void bytesMessage(InputStream in)
in
- The input stream containing the binary datavoid textMessage(Reader in)
in
- The character stream containing the messagevoid failure(Throwable t)
t
- the exception associated with the failure.void close()
Copyright © 2020. All rights reserved.