send a ping frame as feedback when publishing a message through websocket connection