# openim-sdk-electron **Repository Path**: tgrape_admin/openim-sdk-electron ## Basic Information - **Project Name**: openim-sdk-electron - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-22 - **Last Updated**: 2025-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Electron Client SDK for OpenIM ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ’ฌ Use this SDK to add instant messaging capabilities to your application. By connecting to a self-hosted [OpenIM](https://www.openim.online/) server, you can quickly integrate instant messaging capabilities into your app with just a few lines of code. The underlying SDK core is implemented in [OpenIM SDK Core](https://github.com/openimsdk/openim-sdk-core). Using cgo, it is exported as C interfaces and provided as dynamic libraries such as DLL, SO, and DYLIB for use by other languages, implemented in [OpenIM SDK Cpp](https://github.com/openimsdk/openim-sdk-cpp.git).The electron interacts with the [OpenIM SDK Cpp](https://github.com/openimsdk/openim-sdk-cpp.git) through JSON, using FFI (Foreign Function Interface) to communicate with the C interfaces, and the SDK exposes a re-encapsulated API for easy usage. For data storage, it utilizes the SQLite layer that is provided internally by the [OpenIM SDK Core](https://github.com/openimsdk/openim-sdk-core). ## Documentation ๐Ÿ“š Visit [https://docs.openim.io/](https://docs.openim.io/) for detailed documentation and guides. For the SDK reference, see [https://docs.openim.io/sdks/quickstart/electron](https://docs.openim.io/sdks/quickstart/electron). ## Installation ๐Ÿ’ป ### Adding Dependencies ```shell npm install @openim/wasm-client-sdk @openim/electron-client-sdk --save ``` ### Obtaining Required Static Resources for WASM Follow these steps to obtain the static resources required for WebAssembly (WASM): 1. Locate the `@openim/wasm-client-sdk` subdirectory in the `node_modules` directory of your project. Copy all the files in the `assets` folder to your project's public resource directory. The files to be copied are: - `openIM.wasm` - `sql-wasm.wasm` - `wasm_exec.js` 2. After copying the files, import the `wasm_exec.js` file in your `index.html` file using a `