Question

What is the WebSocket Summary and why do I need it? What happens if WebSockets stop working?

Answer

WebSocket enables two-way interactive communication sessions between Sandwich and external servers without having to poll the servers for a reply.

WebSocket enables two-way interactive communication sessions between Sandwich and external servers without having to poll the servers for a reply. Sandwich receives data from the exchanges via the WebSockets.

The WebSocket Summary shows all active WebSockets and the queries they are making to the exchange. It also indicates if a WebSocket has disconnected or stopped working.

If a WebSocket stops working, Sandwich stops receiving some information from the exchange. This can cause various elements of the app to stop updating, such as the DMA, orders for a certain exchange, and more. The best way to restart a WebSocket is by reloading the account for the relevant exchange.