B C E O S T W 

B

BINARY - Static variable in interface com.squareup.okhttp.ws.WebSocket
A MediaType indicating binary frames should be used when sending the message.

C

cancel() - Method in class com.squareup.okhttp.ws.WebSocketCall
Cancels the request, if possible.
close(int, String) - Method in interface com.squareup.okhttp.ws.WebSocket
Send a close frame to the server.
com.squareup.okhttp.ws - package com.squareup.okhttp.ws
 
create(OkHttpClient, Request) - Static method in class com.squareup.okhttp.ws.WebSocketCall
Prepares the request to create a web socket at some point in the future.

E

enqueue(WebSocketListener) - Method in class com.squareup.okhttp.ws.WebSocketCall
Schedules the request to be executed at some point in the future.

O

onClose(int, String) - Method in interface com.squareup.okhttp.ws.WebSocketListener
Called when the server sends a close message.
onFailure(IOException, Response) - Method in interface com.squareup.okhttp.ws.WebSocketListener
Called when the transport or protocol layer of this web socket errors during communication.
onMessage(ResponseBody) - Method in interface com.squareup.okhttp.ws.WebSocketListener
Called when a server message is received.
onOpen(WebSocket, Response) - Method in interface com.squareup.okhttp.ws.WebSocketListener
Called when the request has successfully been upgraded to a web socket.
onPong(Buffer) - Method in interface com.squareup.okhttp.ws.WebSocketListener
Called when a server pong is received.

S

sendMessage(RequestBody) - Method in interface com.squareup.okhttp.ws.WebSocket
Send a message payload to the server.
sendPing(Buffer) - Method in interface com.squareup.okhttp.ws.WebSocket
Send a ping to the server with optional payload.

T

TEXT - Static variable in interface com.squareup.okhttp.ws.WebSocket
A MediaType indicating UTF-8 text frames should be used when sending the message.

W

WebSocket - Interface in com.squareup.okhttp.ws
Blocking interface to connect and write to a web socket.
WebSocketCall - Class in com.squareup.okhttp.ws
 
WebSocketListener - Interface in com.squareup.okhttp.ws
Listener for server-initiated messages on a connected WebSocket.
B C E O S T W 

Copyright © 2016. All Rights Reserved.