Skip to content

RPC support for SSE #3309

Open
Open
@cybercoder-naj

Description

What is the feature you are proposing?

We require using EventSource to work with SSE routes, but can we have Hono's RPC to have this functionality as well?

const client = hc<typeof app>(`https://${BASE_URL}`)
client.sse.$get({
  onMessage(event) { /* do something with this */ },
  // other callbacks
}, {
  headers: {
    Authorization: 'Bearer booyah'
  }
})

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions