Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

SocketManager: Add optional argument pass-through to socketio.AsyncServer constructor #14

Closed
inactivist opened this issue Dec 24, 2020 · 1 comment

Comments

@inactivist
Copy link

inactivist commented Dec 24, 2020

There are times when it may be necessary to be able to pass optional arguments to the AsyncServer constructor.

The current SocketManager constructor passes a fixed set of arguments when it initializes the _sio instance.

Perhaps an optional dict argument, socketio_server_args could be passed down into the AsyncServer constructor, as kwargs.

I'll try to work up a PR for this soon.

@inactivist inactivist changed the title Add kwargs pass-through to socketio.AsyncServer constructor SocketManager: Add optional argument pass-through to socketio.AsyncServer constructor Dec 24, 2020
@pyropy
Copy link
Owner

pyropy commented Jun 17, 2021

I added async_mode argument that defaults to asgi. Take a look at #21 . Sorry because this took this long..

Let me know if that resolves your issue 😄

@pyropy pyropy closed this as completed Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants