Skip to content

How use option path like socket.io-client for JavaScript? #191

@lminhtu31

Description

@lminhtu31

With client-side JavaScript:
var socket = io('http://127.0.0.1:8080', { path: '/myapp/notify' })

But I can't find path option in this library. In API documents, I saw:
h.connect("http://127.0.0.1:8080") without path option.

Because my socket.io server deploy on a sub-domain with NginX. On server-side:
var io = require('socket.io')(http, { path: '/myapp/notify' });

So my question is: How use option path like socket.io-client for JavaScript?

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