server: working chat server from the websockets example