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
- 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.