Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a reference of the web socket client that dispatched the msg callback #140

Open
beckmx opened this issue Dec 5, 2022 · 0 comments
Assignees

Comments

@beckmx
Copy link

beckmx commented Dec 5, 2022

Is your feature request related to a problem? Please describe.
Hello guys,

I was wondering if there is a way of identifying which instance of the websocket client is populating the message callback method, I would like to create these web socket client instances dynamically, so they might change over the time.

Describe the solution you'd like
The message or event callback methods should also include a reference to the instance client that fired those callbacks

Describe alternatives you've considered
Creating an array/vector pairing both the instance of the callback method and the client instance

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

No branches or pull requests

2 participants