| Package | com.kaazing.gateway.client.html5 |
| Class | public class EventSource |
| Inheritance | EventSource flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| onerror : Function | EventSource | ||
| onmessage : Function | EventSource | ||
| onopen : Function | EventSource | ||
| readyState : Number [read-only]
| EventSource | ||
| Method | Defined by | ||
|---|---|---|---|
|
EventSource(location:String)
| EventSource | ||
|
disconnect():void
| EventSource | ||
|
dispatchError():void
| EventSource | ||
|
dispatchMessage(type:String, data:String):void
| EventSource | ||
|
dispatchOpen():void
| EventSource | ||
|
handleAuthChallengeNew(authChallenge:String, httpStream:HttpStream):void
| EventSource | ||
|
handleError(event:Event):void
| EventSource | ||
|
handleLoad(event:Event):void
| EventSource | ||
|
handleOpen(event:Event):void
| EventSource | ||
|
handleProgress(event:MessageEvent):void
| EventSource | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| EventSource | ||||
| EventSource | ||||
| Dispatched when a 200 OK response is received with Content-type text/event-stream. | EventSource | |||
| Constant | Defined by | ||
|---|---|---|---|
| CLOSED : Number = 2 [static]
| EventSource | ||
| CONNECTING : Number = 0 [static]
| EventSource | ||
| OPEN : Number = 1 [static]
| EventSource | ||
| onerror | property |
public var onerror:Function
| onmessage | property |
public var onmessage:Function
| onopen | property |
public var onopen:Function
| readyState | property |
readyState:Number [read-only]Implementation
public function get readyState():Number
| EventSource | () | constructor |
public function EventSource(location:String)Parameters
location:String |
| disconnect | () | method |
public function disconnect():void
| dispatchError | () | method |
public function dispatchError():void
| dispatchMessage | () | method |
public function dispatchMessage(type:String, data:String):voidParameters
type:String |
|
data:String |
| dispatchOpen | () | method |
public function dispatchOpen():void
| handleAuthChallengeNew | () | method |
public function handleAuthChallengeNew(authChallenge:String, httpStream:HttpStream):voidParameters
authChallenge:String |
|
httpStream:HttpStream |
| handleError | () | method |
public function handleError(event:Event):voidParameters
event:Event |
| handleLoad | () | method |
public function handleLoad(event:Event):voidParameters
event:Event |
| handleOpen | () | method |
public function handleOpen(event:Event):voidParameters
event:Event |
| handleProgress | () | method |
| error | event |
| message | event |
| open | event |
flash.events.Event
Dispatched when a 200 OK response is received with Content-type text/event-stream.
| CLOSED | constant |
public static const CLOSED:Number = 2
| CONNECTING | constant |
public static const CONNECTING:Number = 0
| OPEN | constant |
public static const OPEN:Number = 1