The EventSource type exposes the following members.

Constructors

  NameDescription
Public methodEventSource
Initializes a new instance of an EventSource

Methods

  NameDescription
Public methodConnect
Connect to a remote event stream.
Public methodDisconnect
Stop the EventStream.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Properties

  NameDescription
Public propertyReadyState
The current connection state.
Public propertyURL
The location string with which the EventSource was constructed.

Events

  NameDescription
Public eventErrorEvent
Occurs when the EventSource has closed due to an error.
Public eventMessageEvent
Occurs when a message is received from the remote event target.
Public eventOpenEvent
Occurs when the EventSource has established a connection with the server.

See Also