Struct yew_event_source::EventSourceService [−][src]
pub struct EventSourceService {}
Expand description
An event source service attached to a user context.
Implementations
pub fn connect(
&mut self,
url: &str,
notification: Callback<EventSourceStatus>
) -> Result<EventSourceTask, &str>
pub fn connect(
&mut self,
url: &str,
notification: Callback<EventSourceStatus>
) -> Result<EventSourceTask, &str>
Connects to a server at url
by an event source connection.
The notification
callback is fired when either an open or error event
happens.
Trait Implementations
Returns the “default value” for a type. Read more