This commit is contained in:
Kegan Dougal 2020-03-11 12:03:45 +00:00
parent 354ad7af91
commit 1d6576c220

View file

@ -96,7 +96,7 @@ func (h *JSServer) ListenAndServe(namespace string) {
js.Global().Set(globalName, server)
}
server.Set(namespace, js.FuncOf(h.onRequestFromJS))
server.Set(namespace, js.FuncOf(h.OnRequestFromJS))
fmt.Printf("Listening for requests from JS on function %s.%s\n", globalName, namespace)
// Block forever to mimic http.ListenAndServe