Skip to content

Miscellaneous

Miscellaneous

  • channelSSETag() — Generate a ‘script’ tag that creates an EventSource for a channel.
  • closeSSEStream() — Close an SSE streaming connection.
  • getRoutes()
  • initSSEStream() — Initialize a streaming SSE connection that bypasses the normal Wheels rendering pipeline.
  • inject() — Declare one or more services for injection into this controller.
  • injectedServices() — Return the list of declared service names for this controller.
  • isSSERequest() — Check if the current request is from an EventSource client.
  • renderSSE() — Render a single SSE event as the controller response.
  • sendSSEComment() — Send an SSE comment (keep-alive ping) through a streaming writer.
  • sendSSEEvent() — Send an SSE event through a streaming writer obtained from initSSEStream().
  • subscribeToChannel() — Subscribe to a channel and stream events to the client via SSE.