The EventSource type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | EventSource |
Initializes a new instance of an EventSource
|
Methods
Name | Description | |
---|---|---|
![]() | Connect |
Connect to a remote event stream.
|
![]() | Disconnect |
Stop the EventStream.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | ReadyState |
The current connection state.
|
![]() | URL |
The location string with which the EventSource was constructed.
|
Events
Name | Description | |
---|---|---|
![]() | ErrorEvent |
Occurs when the EventSource has closed due to an error.
|
![]() | MessageEvent |
Occurs when a message is received from the remote event target.
|
![]() | OpenEvent |
Occurs when the EventSource has established a connection with the server.
|