diff --git a/docs/api.go b/docs/api.go index bc7d1e7..887e569 100644 --- a/docs/api.go +++ b/docs/api.go @@ -1,6 +1,7 @@ package main import ( + "context" "encoding/json" "fmt" "net/http" @@ -24,5 +25,8 @@ func main() { } }) - wasmhttp.ServeOnce(nil) + var release = wasmhttp.Serve(nil) + defer release() + + <-context.Background().Done() } diff --git a/docs/api.wasm b/docs/api.wasm index 1071ae9..6d697eb 100755 Binary files a/docs/api.wasm and b/docs/api.wasm differ diff --git a/docs/index.html b/docs/index.html index cf9b3ea..51c2ad5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@
- +