Channel

external class Channel<T>(source)

Constructors

Link copied to clipboard
constructor(onmessage: (response: T) -> Unit = definedExternally)

Properties

Link copied to clipboard
var id: Double

The callback id returned from {@linkcode transformCallback}

Link copied to clipboard
var onmessage: (response: T) -> Unit

Functions

Link copied to clipboard
fun toJSON(): String