Skip to content

Chatroom example problems. #1987

Discussion options

You must be logged in to vote

re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatRoomConsumer),

TypeError: object ChatRoomConsumer can't be used in 'await' expression

You're missing an .as_asgi():

re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatRoomConsumer.as_asgi()),

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@murodjon001
Comment options

Answer selected by murodjon001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants