add ping/pong to websocket api to keep connection alive