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

Unexpected first data #6

Open
kghch opened this issue Dec 8, 2016 · 1 comment
Open

Unexpected first data #6

kghch opened this issue Dec 8, 2016 · 1 comment

Comments

@kghch
Copy link

kghch commented Dec 8, 2016

When opening a browser, I found there was a line showing "1", which should not be there.

And in event_stream() function the print shows the following first data:

{'pattern': None, 'type': 'subscribe', 'channel': 'chat', 'data': 1L}

I'm new to this, and wandering what the 1L data is for. From my point of view, it should be empty.

@dongliang3571
Copy link

Every time you call pubsub.subscribe('chat'), it's gonna send a message {'pattern': None, 'type': 'subscribe', 'channel': 'chat', 'data': 1L} to the channel. That's why you're seeing it when the connection is established. You will see it more when the connection gets re-establised.

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