Generalized the websocket to allow using it for many different kinds of packets (block update packets are next\!)