Skip to content

Namespace setup for no namespace #2

@cadavre

Description

@cadavre

Is there a way to setup default namespace '/'?
If I fire:
io.setupNamespace('/', function (nsp) { }
It is called for default namespace but if I use middleware inside it's called for all custom namespaces too.

What I want to achieve is – disallow connections to no namespace. My idea was – decline connection with error in middleware. Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions