Skip to content

tapiocaboy/converter

Repository files navigation

WebSocket WASM Demo

A WebSocket demo application using Rust WebAssembly (WASM) and Node.js.

Prerequisites

  • Rust and Cargo
  • Node.js and npm
  • wasm-pack

Installation

  1. Install wasm-pack

    cargo install wasm-pack
  • Install webpack

    npm install webpack webpack-cli --save-dev
  • Node WebSocket Server

    npm install ws

Build and Run

wasm-pack build --target web && npm run serve

Run

# Terminal 1
wasm-pack build --target web
npm run serve

# Terminal 2
npm run start-server

Open the browser and navigate to http://localhost:4000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published