org.atmosphere.gwt.client.impl
Class WebSocket

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.atmosphere.gwt.client.impl.WebSocket

public class WebSocket
extends com.google.gwt.core.client.JavaScriptObject

Author:
p.havelaar

Nested Class Summary
static class WebSocket.ReadyState
           
 
Constructor Summary
protected WebSocket()
           
 
Method Summary
 void clearListener()
           
 void close()
           
static WebSocket create(String url)
          Creates an WebSocket object.
static WebSocket create(String url, String protocol)
           
 int getBufferedAmount()
           
 WebSocket.ReadyState getReadyState()
           
static boolean isSupported()
           
 void send(String data)
           
 void setListener(WebSocketListener listener)
           
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebSocket

protected WebSocket()
Method Detail

create

public static WebSocket create(String url)
Creates an WebSocket object.

Returns:
the created object

create

public static WebSocket create(String url,
                               String protocol)

getReadyState

public final WebSocket.ReadyState getReadyState()

getBufferedAmount

public final int getBufferedAmount()

send

public final void send(String data)

close

public final void close()

setListener

public final void setListener(WebSocketListener listener)

clearListener

public final void clearListener()

isSupported

public static boolean isSupported()


Copyright © 2013. All Rights Reserved.