Skip to content

Python client connects to URL other than the one specified #818

@rgov

Description

@rgov

I am running python-socketio version 5.3.0.

await sio.connect('https://localhost/my-app/', namespaces=['/ns'])

This inexplicably tries to load the URL https://localhost/socket.io/?transport=polling&EIO=4, ignoring the path /my-app/ that I provided in the url parameter.

This works:

await sio.connect('https://localhost', socketio_path='/my-app/')

The socketio_path parameter is not documented on https://python-socketio.readthedocs.io/en/latest/client.html#connecting-to-a-server

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