Solution to Problem 9: Websockets