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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?