webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
org.appspot.apprtc.WebSocketChannelClient Class Reference

Classes

interface  WebSocketChannelEvents
 
enum  WebSocketConnectionState
 

Public Member Functions

 WebSocketChannelClient (Handler handler, WebSocketChannelEvents events)
 
WebSocketConnectionState getState ()
 
void connect (final String wsUrl, final String postUrl)
 
void register (final String roomID, final String clientID)
 
void send (String message)
 
void post (String message)
 
void disconnect (boolean waitForComplete)
 

Detailed Description

WebSocket client implementation.

All public methods should be called from a looper executor thread passed in a constructor, otherwise exception will be thrown. All events are dispatched on the same thread.

Constructor & Destructor Documentation

◆ WebSocketChannelClient()

org.appspot.apprtc.WebSocketChannelClient.WebSocketChannelClient ( Handler  handler,
WebSocketChannelEvents  events 
)
inline

Member Function Documentation

◆ connect()

void org.appspot.apprtc.WebSocketChannelClient.connect ( final String  wsUrl,
final String  postUrl 
)
inline

◆ disconnect()

void org.appspot.apprtc.WebSocketChannelClient.disconnect ( boolean  waitForComplete)
inline

◆ getState()

WebSocketConnectionState org.appspot.apprtc.WebSocketChannelClient.getState ( )
inline

◆ post()

void org.appspot.apprtc.WebSocketChannelClient.post ( String  message)
inline

◆ register()

void org.appspot.apprtc.WebSocketChannelClient.register ( final String  roomID,
final String  clientID 
)
inline

◆ send()

void org.appspot.apprtc.WebSocketChannelClient.send ( String  message)
inline

The documentation for this class was generated from the following file: