RocketChat/Rocket.Chat

View on GitHub
packages/core-typings/src/voip/IConnectionDelegate.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Delegate interface connection events while connecting to PBX
 * @remarks
 * This interface is implemented by a class which is
 * interested in handling connection events.
 */
export interface IConnectionDelegate {
    /**
     * Called when a connection is establised
     * @remarks
     * Callback for handling connection success
     */
    onConnected?(): void;
    /**
     * Called when connection fails
     * @remarks
     * Callback for handling the connection error
     */
    onConnectionError?(error: any): void;
}