Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History

simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

Simple Example

Shows how to use matchbox_socket in a simple example.

Instructions

  • Run the matchbox-provided matchbox_server (help), or run your own on ws://localhost:3536/.
  • Run the demo
    • on Native
    • on WASM

Run on Native

cargo run

Run on WASM

Prerequisites

Install the wasm32-unknown-unknown target

rustup target install wasm32-unknown-unknown

Install a lightweight web server

cargo install wasm-server-runner

Serve

cargo run --target wasm32-unknown-unknown

Run