cloudflare / cloudflare/partykit
Hono party prefix doesn't work
Open
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
The [prefix option](https://github.com/cloudflare/partykit/tree/main/packages/hono-party#usage) can be used to change the base `/parties` path ? I just changed it to "'/ws", but it doesn't work
```
app.use(
'*',
partyserverMiddleware({
options: {
prefix: "/ws" // Handles /ws/* routes only
},
onError: (error) => {
console.error('Partyserver error:', error);
throw new HTTPException(404, { message: 'No room found' });
},
})
);
```
Contributor guide
Assessment
This issue has not been assessed yet.