Skip to content

Conversation

@francoijs
Copy link

This PR adds the ability to pass extra args to constructor of user-defined namespaces through method SocketIO.define:

class MyNamespace(BaseNamespace):
    def __init__(self, socket, path, myid):
        self.myid = myid

socket = SocketIO(server, port)
ns = socket.define(MyNamespace, '/path', 'myid')

@francoijs francoijs force-pushed the master branch 2 times, most recently from 1117aad to dbab81f Compare March 24, 2019 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants