Mac OS X Reference Library Apple Developer
Search

WebSocket

Module:
websockets
Declared In:

Overview

Use the links in the table of contents to the left to access the documentation.



Functions

addEventListener
close
dispatchEvent
removeEventListener
send

addEventListener



void addEventListener(
    in DOMString type, 
    in EventListener listener, 
    in boolean useCapture); 

close



void close(); 

dispatchEvent



boolean dispatchEvent(
    in Event evt) raises(EventException); 

removeEventListener



void removeEventListener(
    in DOMString type, 
    in EventListener listener, 
    in boolean useCapture); 

send



boolean send(
    in DOMString data) raises(DOMException); 

Member Data

bufferedAmount
CLOSED
CONNECTING
onclose
onerror
onmessage
onopen
OPEN
readyState
URL

bufferedAmount



readonly attribute unsigned long bufferedAmount; 

CLOSED



const unsigned short CLOSED = 2; 

CONNECTING



const unsigned short CONNECTING = 0; 

onclose



attribute EventListener onclose; 

onerror



attribute EventListener onerror; 

onmessage



attribute EventListener onmessage; 

onopen



attribute EventListener onopen; 

OPEN



const unsigned short OPEN = 1; 

readyState



readonly attribute unsigned short readyState; 

URL



readonly attribute DOMString URL; 

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-05-27