ping server to keep connection open
Fix popup refreshing on send