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

Event streams behave differently if query string is present #289

Open
kyork-cl opened this issue Jan 29, 2016 · 1 comment
Open

Event streams behave differently if query string is present #289

kyork-cl opened this issue Jan 29, 2016 · 1 comment

Comments

@kyork-cl
Copy link
Contributor

This isn't documented in the wiki, but it seems that you can open the events stream with a "topic" parameter like wscat -c ws://localhost:1337/events?topic="**". This seems to work as you would expect in that events matching the topic value are received with two exceptions:

  1. The socket does not respond to subscription events as outlined in the documentation
  2. Event data received doesn't match the format outlined in the documentation, it seems to follow the format for a direct connection to a monitored value (eg the "topic" doesn't contain the server ID)

What is the expected behavior for this usage?

@AdamMagaluk
Copy link
Collaborator

This is expected behavior and we probably need better documentation on the differences.

When we started the multiplexed ws feature we made the decision to make the existing streams backwards compatible with older versions of zetta. This means no subscription acks and old formating.

Regarding 2, this poses issues with not being able to identifying the originating server, previously you could not subscribe to wildcards that match multiple servers.

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