Wasm client-side caveats
masterWhen compiling the client side to WebAssembly (Wasm), the library wraps the browser WebSocket API. Be aware of the following limitations in the Wasm environment:
Acceptalways returns an error.Conn.Pingis a no-op.Conn.CloseNowperforms aClose(StatusGoingAway, "").HTTPClient,HTTPHeader, andCompressionModeinDialOptionsare no-ops.- A successful
Dialreturns an*http.Responsethat is an empty struct (&http.Response{}) with a101status code.