Skip to content

Is it possible to send messages from one namespace to a different namespace? #44

@Ramanth

Description

@Ramanth

currently we are building socket.io server and trying to design an asyncapi spec with two channels /errors and /updates.
The idea is that client will get regular updates on /updates channel and any errors or warnings in a different /errors channel.

The source of errors could be originating from logic on /updates namespace and we are trying to see if its possible to emit a message into /errors namespace from the logic thats inside the .on listner of /updates namespace?

also we observed the socket id is different when we try to connect as a client to both /updates and /errors channels.
are we in the right direction or doing something basically wrong here?

Is it possible to have same socketid or socket for two different namespaces?

Assumption:

  1. we are assuming the channels on asyncapi spec to be analogous to namespace in socket.io

@trinopoty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions