-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unused packages removed, readme added
- Loading branch information
Showing
3 changed files
with
70 additions
and
1,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Zenoh-ts Chat Example | ||
|
||
This example demonstrates usage of zenoh-ts library in real web application. | ||
|
||
To start the example follow these steps: | ||
|
||
1. Build the zenoh-ts library (see root [README](../../README.md)) | ||
|
||
1. Start zenohd with websocket plugin (see root [README](../../README.md)) | ||
|
||
1. Build and run chat example. Browser window should automatically open | ||
|
||
```sh | ||
npm install | ||
npm run build | ||
npm run start | ||
``` | ||
|
||
The example uses "importmap" approach to run the project. This is done purposedly to | ||
verify that library is ready to work directly in browser without any additional bundling. | ||
|
||
Note thought that dependent libraries are loaded from the cloud instead of local node_modules in this approach. | ||
This is necessayr because some of them (especially `channel-ts`) is written with CommonJS module | ||
loading system and can't work in browser without repacking. |
Oops, something went wrong.