Backend sockets development. A lot of @TODO.