Skip to content

A Rust library that compiles to Wasm and export one function (with Typescript syntax). This function connects to some websocket `endpoint`, sends/receives a message & returns it's contents

Notifications You must be signed in to change notification settings

sitetester/wasm-to-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check relevant README.md files in /client & /server

It's a Rust library that compiles to Wasm and exports a function wsPing(endpoint: string, message: string): Promise<string> (Typescript syntax)

This function establishes a web socket connection to some "endpoint" and send the text message, receive a message, and return its content.

Check Running test on how to run relevant tests. Screenshots: Web & Node

Why such workspace setup ?

  • It has conflict with tokio rt-multi-thread feature, which is being used in /server for running Websocket server
  • For websocket server, currently there is only a single file, it's better to put it in same repository.

About

A Rust library that compiles to Wasm and export one function (with Typescript syntax). This function connects to some websocket `endpoint`, sends/receives a message & returns it's contents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published