Websocket: Accept a PONG

Based on https://github.com/LearnBoost/socket.io/pull/1026, extended
to cover both protocol versions.