wasmserve

An HTTP server for testing Wasm like `gopherjs serve`

  • 所有者: hajimehoshi/wasmserve
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者hajimehoshi/wasmserve
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2018-07-06 19:02:51
推送于2025-03-03 18:17:42
最后一次提交
发布数12
最新版本名称v1.3.0-alpha.1 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数266
关注者数6
派生数28
提交数71
已启用问题?
问题数22
打开的问题数2
拉请求数12
打开的拉请求数0
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?