Packagecom.kaazing.gateway.client.html5
Classpublic class EventSource
InheritanceEventSource Inheritance flash.events.EventDispatcher

EventSource provides a event stream abstraction for ActionScript.



Public Properties
 PropertyDefined by
  onerror : Function
EventSource
  onmessage : Function
EventSource
  onopen : Function
EventSource
  readyState : Number
[read-only]
EventSource
Public Methods
 MethodDefined by
  
EventSource(location:String)
EventSource
  
disconnect():void
EventSource
  
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
  
EventSource
Events
 EventSummaryDefined by
    EventSource
    EventSource
   Dispatched when a 200 OK response is received with Content-type text/event-stream.EventSource
Public Constants
 ConstantDefined by
  CLOSED : Number = 2
[static]
EventSource
  CONNECTING : Number = 0
[static]
EventSource
  OPEN : Number = 1
[static]
EventSource
Property detail
onerrorproperty
public var onerror:Function
onmessageproperty 
public var onmessage:Function
onopenproperty 
public var onopen:Function
readyStateproperty 
readyState:Number  [read-only]Implementation
    public function get readyState():Number
Constructor detail
EventSource()constructor
public function EventSource(location:String)Parameters
location:String
Method detail
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 
public function handleProgress(event:MessageEvent):voidParameters
event:MessageEvent
Event detail
errorevent 
Event object type: flash.events.ErrorEvent

messageevent  
Event object type: com.kaazing.gateway.client.html5.MessageEvent

openevent  
Event object type: flash.events.Event

Dispatched when a 200 OK response is received with Content-type text/event-stream.

Constant detail
CLOSEDconstant
public static const CLOSED:Number = 2
CONNECTINGconstant 
public static const CONNECTING:Number = 0
OPENconstant 
public static const OPEN:Number = 1