Add heartbeats support to SocketIo protocol.