View Source Buckaroo.Router (buckaroo v0.4.2)
An extension to Plug.Router
now also supporting websocket
.
Link to this section Summary
Link to this section Functions
Dispatches to the event source.
Server-Sent Events (SSE) is a server push technology enabling a client to receive automatic updates from a server via HTTP connection.
See Plug.Router.match/3
for more examples.
example
Example
sse "/eventsource", source: ExampleEventSource
Dispatches to the websocket.
See Plug.Router.match/3
for more examples.
example
Example
websocket "/ws", connect: ExampleSocket