simplify websocket example and add client example template