# Websockets send text message **Lale websockets architecture** ![](https://i.imgur.com/HPAiAXp.png) ## Send message with (Matrix) `event_id` ![](https://i.imgur.com/3mnYhjX.png) 1. Client A send payload to Websockets. 2. Websocket send the payload to MQ. 3. Command Handler listen to MQ. 4. Command Handler call matrix API. 5. Command handler response Websocket. 6. Websocket response to client. ## Send message without (Matrix) `event_id` ![](https://i.imgur.com/9J4c98h.png) 1. Client A send payload to Websockets. 2. Websocket send the payload to MQ. 3. Websocket response to client (with dummy event_id). 4. Command Handler listen to MQ. 5. Command Handler call matrix API. ## Send message 3 ![](https://i.imgur.com/wQkKZRH.jpg) ## Verification data 1. Send message with (Matrix) `event_id` - Dev6 : Receive messages in 1-3 sec (almost 1 sec) - Formal : Receive messages in 3-20 sec 2. Send message without (Matrix) `event_id` - Dev6 : Receive messages in 1-3 sec (almost 1 sec) - Formal : Receive messages in 1-3 sec (almost 1 sec)