0.0.1 • Published 2 years ago

open-im-sdk-wasm-vite v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

open-im-sdk-web-wasm

how to use

  • 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 and Cross-Origin-Embedder-Policy:require-corp
  • then add code as below

    import { getSDK } from 'open-im-sdk-web-wasm';
    
    const sdk = getSDK();