Tutorial: interop.clientDisconnected

interop.clientDisconnected

Provides the identity of any Interop Client that disconnects from the Interop Broker. It is meant to be overriden.

Example

fin.Platform.init({
    interopOverride: async (InteropBroker) => {
        class Override extends InteropBroker {
            async clientDisconnected(clientIdentity) {
                const { uuid, name } = clientIdentity;
                console.log(`Client with identity ${uuid}/${name} has been disconnected`);
            }
        }
        return new Override();
    }
});