Add support for gateways between two chronicles and a socket