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

Request: Expose socket messages as global events #18

Open
finite2 opened this issue Aug 14, 2022 · 0 comments
Open

Request: Expose socket messages as global events #18

finite2 opened this issue Aug 14, 2022 · 0 comments

Comments

@finite2
Copy link

finite2 commented Aug 14, 2022

The websocket logs messages to the console here but does not provide a way to listen out for these events from code external to this client.

In particular if a match is requested on the splinterlands website the match will emit an event here but cannot be interacted with because splinterlands.get_match() will return null here

I would like to be able to listen to and thus react to these events. A simple way to do this would be to dispatch events to the window which seems to be acceptable since it is done here

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

1 participant