API documentation  2.0rc1
Public Member Functions | List of all members
client::WebSocket Class Reference

#include <clientlib.h>

Inherits client::EventTarget.

Public Member Functions

Stringget_binaryType ()
 
void set_binaryType (const String &)
 
double get_bufferedAmount ()
 
Stringget_extensions ()
 
EventListenerget_onclose ()
 
void set_onclose (EventListener *)
 
EventListenerget_onerror ()
 
void set_onerror (EventListener *)
 
EventListenerget_onmessage ()
 
void set_onmessage (EventListener *)
 
EventListenerget_onopen ()
 
void set_onopen (EventListener *)
 
Stringget_protocol ()
 
double get_readyState ()
 
Stringget_url ()
 
void close ()
 
void close (double code)
 
void close (double code, const String &reason)
 
void send (const String &data)
 
template<class ArrayBufferLike >
void send (ArrayBufferLike *data)
 
void send (Blob *data)
 
void send (ArrayBufferView *data)
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
WebSocketget_prototype ()
 
void set_prototype (WebSocket *)
 
 WebSocket (const String &url)
 
 WebSocket (const String &url, const String &protocols)
 
 WebSocket (const String &url, Array *protocols)
 
double get_CLOSED ()
 
double get_CLOSING ()
 
double get_CONNECTING ()
 
double get_OPEN ()
 
- Public Member Functions inherited from client::EventTarget
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
bool dispatchEvent (Event *evt)
 
void removeEventListener (const String &type)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, bool options)
 
EventTargetget_prototype ()
 
void set_prototype (EventTarget *)
 
 EventTarget ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ WebSocket() [1/3]

client::WebSocket::WebSocket ( const String url)

◆ WebSocket() [2/3]

client::WebSocket::WebSocket ( const String url,
const String protocols 
)

◆ WebSocket() [3/3]

client::WebSocket::WebSocket ( const String url,
Array protocols 
)

Member Function Documentation

◆ addEventListener() [1/5]

void client::WebSocket::addEventListener ( const String type,
EventListener listener 
)

◆ addEventListener() [2/5]

void client::WebSocket::addEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ addEventListener() [3/5]

void client::WebSocket::addEventListener ( const String type,
EventListener listener,
AddEventListenerOptions options 
)

◆ addEventListener() [4/5]

void client::WebSocket::addEventListener ( const String type,
EventListenerObject listener 
)

◆ addEventListener() [5/5]

void client::WebSocket::addEventListener ( const String type,
EventListenerObject listener,
AddEventListenerOptions options 
)

◆ close() [1/3]

void client::WebSocket::close ( )

◆ close() [2/3]

void client::WebSocket::close ( double  code)

◆ close() [3/3]

void client::WebSocket::close ( double  code,
const String reason 
)

◆ get_binaryType()

String* client::WebSocket::get_binaryType ( )

◆ get_bufferedAmount()

double client::WebSocket::get_bufferedAmount ( )

◆ get_CLOSED()

double client::WebSocket::get_CLOSED ( )

◆ get_CLOSING()

double client::WebSocket::get_CLOSING ( )

◆ get_CONNECTING()

double client::WebSocket::get_CONNECTING ( )

◆ get_extensions()

String* client::WebSocket::get_extensions ( )

◆ get_onclose()

EventListener* client::WebSocket::get_onclose ( )

◆ get_onerror()

EventListener* client::WebSocket::get_onerror ( )

◆ get_onmessage()

EventListener* client::WebSocket::get_onmessage ( )

◆ get_onopen()

EventListener* client::WebSocket::get_onopen ( )

◆ get_OPEN()

double client::WebSocket::get_OPEN ( )

◆ get_protocol()

String* client::WebSocket::get_protocol ( )

◆ get_prototype()

WebSocket* client::WebSocket::get_prototype ( )

◆ get_readyState()

double client::WebSocket::get_readyState ( )

◆ get_url()

String* client::WebSocket::get_url ( )

◆ removeEventListener() [1/5]

void client::WebSocket::removeEventListener ( const String type,
EventListener listener 
)

◆ removeEventListener() [2/5]

void client::WebSocket::removeEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ removeEventListener() [3/5]

void client::WebSocket::removeEventListener ( const String type,
EventListener listener,
EventListenerOptions options 
)

◆ removeEventListener() [4/5]

void client::WebSocket::removeEventListener ( const String type,
EventListenerObject listener 
)

◆ removeEventListener() [5/5]

void client::WebSocket::removeEventListener ( const String type,
EventListenerObject listener,
EventListenerOptions options 
)

◆ send() [1/4]

void client::WebSocket::send ( const String data)

◆ send() [2/4]

template<class ArrayBufferLike >
void client::WebSocket::send ( ArrayBufferLike *  data)

◆ send() [3/4]

void client::WebSocket::send ( Blob data)

◆ send() [4/4]

void client::WebSocket::send ( ArrayBufferView data)

◆ set_binaryType()

void client::WebSocket::set_binaryType ( const String )

◆ set_onclose()

void client::WebSocket::set_onclose ( EventListener )

◆ set_onerror()

void client::WebSocket::set_onerror ( EventListener )

◆ set_onmessage()

void client::WebSocket::set_onmessage ( EventListener )

◆ set_onopen()

void client::WebSocket::set_onopen ( EventListener )

◆ set_prototype()

void client::WebSocket::set_prototype ( WebSocket )