mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2026-01-12 01:59:14 +00:00
⚗️
This commit is contained in:
@@ -22,5 +22,7 @@ func main() {
|
||||
}
|
||||
})
|
||||
|
||||
fmt.Println("Calling ServeOnce")
|
||||
|
||||
wasmhttp.ServeOnce(nil)
|
||||
}
|
||||
|
||||
BIN
docs/api.wasm
BIN
docs/api.wasm
Binary file not shown.
@@ -1,3 +1,11 @@
|
||||
importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@048825e2c7dd6b9dcfe3462105f4364ffc70663c/sw.js')
|
||||
|
||||
addEventListener('install', (event) => {
|
||||
event.waitUntil(skipWaiting())
|
||||
})
|
||||
|
||||
addEventListener('activate', event => {
|
||||
event.waitUntil(clients.claim())
|
||||
})
|
||||
|
||||
registerWasmHTTPListener('api.wasm')
|
||||
|
||||
Reference in New Issue
Block a user