Method SendAsync
SendAsync(string?, string)
Asynchronously sends an event to the client over the HTTP connection.
public ValueTask<bool> SendAsync(string? data, string fieldName = "data")
Parameters
datastringThe data to be sent as part of the event.
fieldNamestringThe field name for the event data. Defaults to "data".
Returns
- ValueTask<bool>
A ValueTask<TResult> that represents the asynchronous operation. The result is true if the event was sent successfully, false otherwise.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語