INNER CODE UNIT · TypeScript

unlisten

hcavarsan/pipedash · src/services/index.ts:123

      const unlisten = await listen<T>(eventName, (event) => {
        callback(event.payload)
      })


      
return unlisten
    } 
      
return wsClient.listen<T>(eventName, callback)
    
  },
}

export { apiService } from './api'
export { tauriService } from './tauri'
export { WS_EVENTS, wsClient } from './websocket'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…