- run
yarn add open-im-sdk-web-wasm
- export all assets files to your public forder(make sure you can access file by http request, and place the wasm_exec.js in your html file)
- config your http-server, make sure the response header contains
Cross-Origin-Opener-Policy:same-origin
andCross-Origin-Embedder-Policy:require-corp
- then add code as below
import { getSDK } from 'open-im-sdk-web-wasm'; const sdk = getSDK();
open-im-sdk-wasm-webpack5![This package contains built-in TypeScript declarations TypeScript icon, indicating that this package has built-in type declarations](https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg)
0.0.2 • Public • Published Package Sidebar
Install
npm i open-im-sdk-wasm-webpack5
Weekly Downloads
2
Version
0.0.2
License
MIT
Unpacked Size
27.3 MB
Total Files
103