notif.mx raw
1 //go:build !wasm
2 //:build !wasm
3
4 package notif
5
6 // Consumer side (app.wasm): send messages to this worker via supervisor.
7 func Send(msg string) { panic("jsbridge") }
8 // OnMessage registers a handler for messages from this worker.
9 func OnMessage(fn func(msg string)) { panic("jsbridge") }
10 // Worker-internal side (notif.wasm): postMessage bridge.
11 func WorkerOnMessage(fn func(msg string)) { panic("jsbridge") }
12 func WorkerPost(msg string) { panic("jsbridge") }
13 func WorkerSetTimeout(ms int32, fn func()) (n int32) { panic("jsbridge") }
14 func WorkerClearTimeout(handle int32) { panic("jsbridge") }
15 func WorkerNowSeconds() (n int64) { panic("jsbridge") }
16