Skip to content
Snippets Groups Projects
Select Git revision
  • 68ff171a7481a865339a420c7f179cbabcc427e9
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

MessengerIsLoggedIn.swift

Blame
  • logFileWorker.js 1002 B
    ////////////////////////////////////////////////////////////////////////////////
    // Copyright © 2022 xx foundation                                             //
    //                                                                            //
    // Use of this source code is governed by a license that can be found in the  //
    // LICENSE file.                                                              //
    ////////////////////////////////////////////////////////////////////////////////
    
    // NOTE: wasm_exec.js must always be in the same directory as this script.
    importScripts('wasm_exec.js');
    // NOTE: This relative path must be preserved in distribution.
    const binPath = '../wasm/xxdk-logFileWorker.wasm'
    
    const isReady = new Promise((resolve) => {
        self.onWasmInitialized = resolve;
    });
    
    const go = new Go();
    WebAssembly.instantiateStreaming(fetch(binPath), go.importObject).then(async (result) => {
        go.run(result.instance);
        await isReady;
    }).catch((err) => {
        console.error(err);
    });