public static interface WebSockets.SocketListener
| Modifier and Type | Method and Description |
|---|---|
void |
bytesMessage(java.io.InputStream in)
Called when a binary media type message is received
|
void |
close()
Called when the stream is closed.
|
void |
open(java.lang.String protocol,
com.squareup.okhttp.ws.WebSocket socket)
Called when the socket is opened
|
void |
textMessage(java.io.Reader in)
Called when a text media type message is received
|
void open(java.lang.String protocol,
com.squareup.okhttp.ws.WebSocket socket)
void bytesMessage(java.io.InputStream in)
in - The input stream containing the binary datavoid textMessage(java.io.Reader in)
in - The character stream containing the messagevoid close()
Copyright © 2019. All rights reserved.