Closed Twintersh closed 9 months ago
The .
is mapped to _
by the consumer when determining which method to call, so the chat.message
format is correct, just as http.request
works for ASGI, mapping to http_request
.
From the docs:
Consumers are structured around a series of named methods corresponding to the
type
value of the messages they are going to receive, with any.
replaced by_
.
should be
it is not calling the right function name (chat.message -> chat_message)