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

run_chat_server_uvloop is not extendable #66

Open
hbasafa opened this issue Jul 12, 2020 · 0 comments
Open

run_chat_server_uvloop is not extendable #66

hbasafa opened this issue Jul 12, 2020 · 0 comments

Comments

@hbasafa
Copy link

hbasafa commented Jul 12, 2020

  • django-private-chat version: 0.3
  • Django version: 3.0.3
  • Python version: 3.6
  • Operating System: ubuntu

Description

I'm trying to extend the message types and implement my customized handlers. I've successfully run default chat server, but when I try to run the uvloop chat server, the new type messages are not routed. I've manually added my handler to channels_uvloop and the run_chat_server_uvloop and also router.py files. no error is raised; the new message type is delivered to server, but the new handler is not called. Is there any additional configurations that I've missed?

added commands:


run_chat_server_uvloop.py:
        ...
        ensure_future(handlers.my_new_handler(channels.my_new_type))

channels_uvloop.py:
        ...
        my_new_type = get_new_uvloop_queue()

router.py:
        MESSAGE_QUEUES = {
             'new-message': new_messages,
             'new-user': users_changed,
             'online': online,
             'offline': offline,
             'check-online': check_online,
             'is-typing': is_typing,
             'read_message': read_unread,
             'my_new_type': my_new_handler,
        }
        ....
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