Initial web sockets implementation