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 |
open(String protocol,
com.squareup.okhttp.ws.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, com.squareup.okhttp.ws.WebSocket socket)
void bytesMessage(InputStream in)
in
- The input stream containing the binary datavoid textMessage(Reader in)
in
- The character stream containing the messagevoid close()
Copyright © 2018. All rights reserved.