sample chat with websockets finished implementation