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 channel inside function decorated by @on_message(channel="^room-") ? #44

Open
Cobos opened this issue Mar 13, 2013 · 0 comments

Comments

@Cobos
Copy link

Cobos commented Mar 13, 2013

Hi!

Is there any chance to get channel inside function decorated by:


@on_message(channel="^room-")
def my_chat_handler(request, socket, context, message):
    # TODO: How can I get channel
    ...

I can get all channels connected with socket - but I just need this one, which sends message.

Currently I'm sending channel in message directly from JavaScript in my client - but I want to secure communication, by channel recognition on server.

I searched a lot but found nothing (Maybe I'm asking google wrong questions?). Maybe answer is very simple and obwious to You.

Please, help me. What can I do?

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