Skip to content

PartyServerOptions type inconsistent with behavior of routePartykitRequest() #279

@pilcrowonpaper

Description

@pilcrowonpaper

In the onBeforeRequest() method of the PartyServerOptions type, parameter lobby.party is type keyof Env. If you had a durable object named MyAgent, it will be "MyAgent".

party: keyof Env;

However, routePartykitRequest() passes the kebab-case namespace value from the URL path as lobby.party instead of the actual class name. So the value will be "my-agent" using the same example.

party: namespace,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions