UNPKG

@4players/odin

Version:

A cross-platform SDK enabling developers to integrate real-time VoIP chat technology into their projects

13 lines (12 loc) 575 B
import { Backend } from '@4players/odin-common'; import Plugin = Backend.Plugin; export declare let PLUGIN: Backend.Plugin | undefined; export declare const SUPPORTED_API_VERSION: Backend.Version; /** * Initializes the WebSDK with the specified plugin, enabling support for specific platforms and features. * * IMPORTANT: This function must be called before attempting to join a room. * * @param {Plugin} plugin - The plugin instance to initialize the WebSDK with. The plugin must have a version of '1' or higher. */ export declare function init(plugin: Plugin): void;