OpenIM Docs โข OpenIM Server โข openim-sdk-wasm โข openim-sdk-core
OpenIM Electron Demo is an open-source instant messaging application built on OpenIM SDK Wasm, OpenIM Server, and Electron. It demonstrates how to quickly integrate instant messaging capabilities into any web app using OpenIM.
Electron
project bootstrapped with Vite
.Give it a try at https://web-enterprise.rentsoft.cn.
It is recommended to use node version 16.x-18.x.
Follow these steps to set up a local development environment:
npm install
to install all dependencies.Note: You need to deploy OpenIM Server first, the default port of OpenIM Server is 10001, 10002, 10008.
src/config/index.ts
export const WS_URL = "ws://your-server-ip:10001"; export const API_URL = "http://your-server-ip:10002"; export const USER_URL = "http://your-server-ip:10008";
npm run dev
to start the development server. Visit http://localhost:5173 to see the result. An Electron application will be launched by default.This project allows building web applications and Electron applications separately, but there will be some differences during the build process.
npm run build
dist
folder.package_electron.json
file with package.json
, keeping only the dependencies required for Electron to function. This significantly reduces the package size. Also, modify the packaging script.npm run build:mac
npm run build:win
npm run build:linux
package
folder.We want anyone to get involved in our community and contributing code, we offer gifts and rewards, and we welcome you to join us every Thursday night.
Our conference is in the OpenIM Slack ๐ฏ, then you can search the Open-IM-Server pipeline to join
We take notes of each biweekly meeting in GitHub discussions, Our historical meeting notes, as well as replays of the meetings are available at Google Docs :bookmark_tabs:.
Check out our user case studies page for a list of the project users. Don't hesitate to leave a ๐comment and share your use case.
OpenIM is licensed under the Apache 2.0 license. See LICENSE for the full license text.