If i had the following url in routing.py:
/rooms/<int:id>/
How would I access the id parameter from withing a JSONWebsocketConsumer?
I think the documentation needs updating, 'url_path' didn't work for me, but 'url_route' did.
self.scope['url_route']['kwargs']['id']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With