wasmserve

An HTTP server for testing Wasm like `gopherjs serve`

  • Owner: hajimehoshi/wasmserve
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

WasmServe

An HTTP server for Wasm testing like gopherjs serve

Installation

go get -u github.com/hajimehoshi/wasmserve

Usage

Usage of wasmserve
  -http string
        HTTP bind address to serve (default ":8080")
  -tags string
        Build tags

Example

Running a remote package

# Be careful that `-tags=example` is required to run the below example application.
wasmserve -tags=example github.com/hajimehoshi/wasmserve/example

And open http://localhost:8080/ on your browser.

Example 2

Running a local package

git clone https://github.com/hajimehoshi/ebiten # This might take several minutes.
cd ebiten
wasmserve -tags=example ./examples/sprites

And open http://localhost:8080/ on your browser.

Known issue with Windows Subsystem for Linux (WSL)

This application sometimes does not work under WSL, due to bugs in WSL, see https://github.com/hajimehoshi/wasmserve/issues/5 for details.

Main metrics

Overview
Name With Ownerhajimehoshi/wasmserve
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2018-07-06 19:02:51
Pushed At2025-03-03 18:17:42
Last Commit At
Release Count12
Last Release Namev1.3.0-alpha.1 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count266
Watchers Count6
Fork Count28
Commits Count71
Has Issues Enabled
Issues Count22
Issue Open Count2
Pull Requests Count12
Pull Requests Open Count0
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private