fix off-by-one bug with message payload length
pong back any pings