EventSource Module
A module that implements the Server-Sent Event specification, which can be read at www.w3.org/TR/eventsource.
Types
| Type | Description |
Functions and values
| Function or value | Description |
|
|
|
Helper function that writes a string of data. Most often you are better off using the `send` function and give it a message, as this will ensure the proper framing is used. However, if you have a desire to write raw data, this function overrides the Socket.async_write function so that you will be writing UTF8 data only, as per the specification.
|
|
|
|
|
|
|
Full Usage:
esId out lastEventId
Parameters:
Connection
lastEventId : string
Returns: Task<unit>
|
|
Full Usage:
eventType out eventType
Parameters:
Connection
eventType : string
Returns: Task<unit>
|
|
|
|
|
|
|