Now correct fix of sending garbage after websocket close connection.
Optimized sending messages by buffering.
Fixed samples. Enabled logging in signalr.