Channel
Module @netwiv/api/core · Kind Class
import { Channel } from '@netwiv/api/core';Constructor
Section titled “Constructor”new Channel<T = unknown>(onmessage?: ((response: T)Instance members
Section titled “Instance members”cleanupCallback
Section titled “cleanupCallback”cleanupCallback: anyid: numberThe callback id returned from {@linkcode transformCallback}
onmessage
Section titled “onmessage”onmessage(response: T): voidtoJSON
Section titled “toJSON”toJSON(): stringDescriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.