Adds basic keep-alive for websockets using pings