Websockets¶
Since Odoo 17, the IoT team is slowly moving toward websocket usage rather than HTTPS. This was introduced by the following Pull Request.
It is important to notice that websockets in Odoo are not designed for real-time communication. Odoo will only accept incoming websocket request (message) to subscribe to a channel. A message can be sent only from the server to a channel and will be received by any client connected to this channel.