Skeleton code with websocket stuff.