Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

socket.io namespace ("endpoint"?) #6

@philworthy

Description

@philworthy

Hi.

I need to connect to a socket.io namespace (socket.io 0.9.x)
e.g. using JS client I would connect to http://mysocketioserver:1234/namespace

Is the correct way to do this to pass the string in the Connect() method rather than in the URL?
socket = new SocketIOClient("http://mysocketioserver:1234");
socket.Connect("namespace");

And if so, do I also need to pass it when doing an Emit?
socket.Emit("message", args, "namespace", null)

Normally I Emit a "joinRoom" message after connecting with a UID as the args and then I'm able to receive messages but not sure what I'm doing wrong here. I get the "connect" message but none of the messages I'm expecting after that.

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