I implemented chat on web sockets according to this article https://habrahabr.ru/post/145077/ I added it to Azure and discovered a problem - when I open a new page with chat, I sometimes get a new static variable Clients and then this chat is no longer sending Messages to previously opened pages, although they work fine among themselves. It turns out that different chats can have different static variables Clients with their lists of web sockets.
// Список всех клиентов private static readonly List<WebSocket> Clients = new List<WebSocket>(); Please tell me how you can solve this problem? Can you configure that a new static variable is not created? Or can you keep a list of Clients elsewhere?