This is what’s happening: we are beginning an endless cycle, set aside some buffer space to hold the info, and attempting to read it toward buffer
There is an information: the HTTP parser is actually stateful, meaning we should make another instance of it per latest clients.
This struct will successfully replace the HashMap statement with HashMap , so we’ve extra your client’s outlet toward state as well.
Also, we can use the exact same WebSocketClient to put on signal to handle facts originating from a client. Continue reading