Skip to content

Connecting to custom namespace connects to default namespace, too #3089

Closed
@MickL

Description

@MickL

You want to:

  • report a bug
  • request a feature

Current behaviour

const adminSocket = io('/admin', { forceNew: true }); will connect to Namespace "/" AND "/admin".

Using this will connect to default namespace two times:

const socket = io();
const adminSocket = io('/admin', { forceNew: true });

Im not sure if this is by design but if yes, it did not found it in the documentation.

Expected behaviour

Connecting to a namespace should not connect to default namespace

Setup

  • socket.io version: 2.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions