Using websockets.
Server closes websocket after sending 10 messages.