I have a REST API endpoint for a device to update some data, another endpoint to get that data and django channels consumer to provide the data via websockets.
The problem is I want to send data to clients through websockets whenever the update(PUT or POST) is submitted by the device.
Perhaps I can use post_save signal for models but this time, it is django channels.
I am not sure how to propogate that signal to Django channels.
Any advice is welcome.
You can have your main part of the application communicate through the channels infrastructure. See Channel Layers, particularly the section on What to send over the channel layer.