Skip to content

Commit

Permalink
Update JS instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Yuan <[email protected]>
  • Loading branch information
juntao authored Aug 19, 2023
1 parent c35026d commit a6fb662
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/develop/javascript/networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ The QuickJS WasmEdge Runtime supports Node.js's `http` and `fetch` APIs via the

The networking API in WasmEdge is non-blocking and hence supports asynchronous I/O-intensive applications. With this API, the JavaScript program can open multiple connections concurrently. It polls those connections or registers async callback functions to process data whenever data comes in, without waiting for any one connection to complete its data transfer. That allows the single-threaded application to handle multiple, multiple concurrent requests.

- [Networking](#networking)
- [Prerequisites](#prerequisites)
- [Fetch client](#fetch-client)
- [HTTP server](#http-server)
- [TCP server and client](#tcp-server-and-client)
- [Prerequisites](#prerequisites)
- [Fetch client](#fetch-client)
- [HTTP server](#http-server)
- [TCP server and client](#tcp-server-and-client)

## Prerequisites

[See here](./hello_world#prerequisites)
Make sure that [you have Rust and WasmEdge installed](../setup.md). To make HTTPS requests, install the [WasmEdge TLS plug-in](../../../start/install.md#tls-plug-in).

Then, [install WasmEdge-QuickJS](./hello_world#prerequisites). Make sure that the `modules` directory is located in your local directory where you want to execute the `wasmedge` command.

## Fetch client

Expand Down

0 comments on commit a6fb662

Please sign in to comment.