Skip to content

Conversation

@rphlmr
Copy link
Owner

@rphlmr rphlmr commented Dec 7, 2025

Fixes #164

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 7, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/rphlmr/react-router-hono-server@166

commit: 7e69cc1

console.log("loading server");

// Store connected clients
const clients = new Set<WSContext>();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of storing clients manually could use wss.clients in this example, since @hono/node-ws has clientTracking enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could you give us the wss instance in upgradeWebSocket?

3 participants