-
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.
example chat application which uses zenoh-ts (#72)
* run zenohd with cargo-bin-run * example config updated * search for plugin in /usr/lib added * docs: Update README with improved instructions for building and running zenohd with remote API plugin * readme updated, command line examples moved to deno subdirectory * update readme formatting * readme grammar fixes * long lines cut in readme * unifinisehd * unfinished * chat example build with importmap * unused packages removed, readme added * readme corrected * add username input and integrate CryptoJS for user identification in chat example * add disconnect button and implement username validation in chat example * fix build error when importing channel from bundled source * feat: enhance chat functionality with user management and liveliness subscription * refactor: simplify ChatSession constructor and improve user management * style: enable flex-wrap in server panel for better layout * feat: invoke usersCallback with an empty array on ChatSession reset * feat: enhance ChatSession with message publishing and subscription capabilities, unfinished * feat: add message handling capabilities to ChatSession with send and receive functionality * feat: log received messages in ChatSession subscriber for better debugging * feat: deserialize incoming messages in ChatSession subscriber and update log display * feat: update message handling in ChatSession to include user information in callbacks * feat: implement message tracking in ChatSession with timestamp, username, and message content * logging updated, keyexpr changed * fix: correct keyexpr parsing in ChatUser and enhance message retrieval logging in ChatSession * update message log on start * feat: add message sending on Enter key press in chat input * feat: add connection and disconnection callbacks in ChatSession * refactor: update log messages for clarity and consistency in ChatSession * split ChetSession to separate file * feat: enhance chat UI with scrollable panels and auto-scroll functionality * feat: improve chat UI with rounded corners and consistent spacing * feat: enhance chat UI by removing default margin, preventing overflow, and ensuring consistent box-sizing * feat: enhance chat UI by adding padding, adjusting margins, and improving layout consistency * feat: enhance server panel layout with improved input handling and button integration * feat: enable and disable message input and send button based on connection status * feat: improve message display in chat by separating username and message text * feat: refactor message handling in chat to improve readability and maintainability * feat: adjust input button layout in server panel for improved usability * readme updated * readme updated * readme update * readme update * readme update * grammar fix
- Loading branch information
Showing
48 changed files
with
5,758 additions
and
174 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
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
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
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"copy-webpack-plugin": "^12.0.2" | ||
} | ||
} |
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,261 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
"@nodelib/[email protected]": | ||
version "2.1.5" | ||
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" | ||
integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== | ||
dependencies: | ||
"@nodelib/fs.stat" "2.0.5" | ||
run-parallel "^1.1.9" | ||
|
||
"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2": | ||
version "2.0.5" | ||
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" | ||
integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== | ||
|
||
"@nodelib/fs.walk@^1.2.3": | ||
version "1.2.8" | ||
resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" | ||
integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== | ||
dependencies: | ||
"@nodelib/fs.scandir" "2.1.5" | ||
fastq "^1.6.0" | ||
|
||
"@sindresorhus/merge-streams@^2.1.0": | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz#719df7fb41766bc143369eaa0dd56d8dc87c9958" | ||
integrity sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg== | ||
|
||
"@types/json-schema@^7.0.9": | ||
version "7.0.15" | ||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" | ||
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== | ||
|
||
ajv-formats@^2.1.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" | ||
integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== | ||
dependencies: | ||
ajv "^8.0.0" | ||
|
||
ajv-keywords@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" | ||
integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== | ||
dependencies: | ||
fast-deep-equal "^3.1.3" | ||
|
||
ajv@^8.0.0, ajv@^8.9.0: | ||
version "8.17.1" | ||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" | ||
integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== | ||
dependencies: | ||
fast-deep-equal "^3.1.3" | ||
fast-uri "^3.0.1" | ||
json-schema-traverse "^1.0.0" | ||
require-from-string "^2.0.2" | ||
|
||
braces@^3.0.3: | ||
version "3.0.3" | ||
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" | ||
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== | ||
dependencies: | ||
fill-range "^7.1.1" | ||
|
||
copy-webpack-plugin@^12.0.2: | ||
version "12.0.2" | ||
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-12.0.2.tgz#935e57b8e6183c82f95bd937df658a59f6a2da28" | ||
integrity sha512-SNwdBeHyII+rWvee/bTnAYyO8vfVdcSTud4EIb6jcZ8inLeWucJE0DnxXQBjlQ5zlteuuvooGQy3LIyGxhvlOA== | ||
dependencies: | ||
fast-glob "^3.3.2" | ||
glob-parent "^6.0.1" | ||
globby "^14.0.0" | ||
normalize-path "^3.0.0" | ||
schema-utils "^4.2.0" | ||
serialize-javascript "^6.0.2" | ||
|
||
fast-deep-equal@^3.1.3: | ||
version "3.1.3" | ||
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" | ||
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== | ||
|
||
fast-glob@^3.3.2: | ||
version "3.3.2" | ||
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" | ||
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== | ||
dependencies: | ||
"@nodelib/fs.stat" "^2.0.2" | ||
"@nodelib/fs.walk" "^1.2.3" | ||
glob-parent "^5.1.2" | ||
merge2 "^1.3.0" | ||
micromatch "^4.0.4" | ||
|
||
fast-uri@^3.0.1: | ||
version "3.0.3" | ||
resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.3.tgz#892a1c91802d5d7860de728f18608a0573142241" | ||
integrity sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw== | ||
|
||
fastq@^1.6.0: | ||
version "1.17.1" | ||
resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" | ||
integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== | ||
dependencies: | ||
reusify "^1.0.4" | ||
|
||
fill-range@^7.1.1: | ||
version "7.1.1" | ||
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" | ||
integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== | ||
dependencies: | ||
to-regex-range "^5.0.1" | ||
|
||
glob-parent@^5.1.2: | ||
version "5.1.2" | ||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" | ||
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== | ||
dependencies: | ||
is-glob "^4.0.1" | ||
|
||
glob-parent@^6.0.1: | ||
version "6.0.2" | ||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" | ||
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== | ||
dependencies: | ||
is-glob "^4.0.3" | ||
|
||
globby@^14.0.0: | ||
version "14.0.2" | ||
resolved "https://registry.yarnpkg.com/globby/-/globby-14.0.2.tgz#06554a54ccfe9264e5a9ff8eded46aa1e306482f" | ||
integrity sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw== | ||
dependencies: | ||
"@sindresorhus/merge-streams" "^2.1.0" | ||
fast-glob "^3.3.2" | ||
ignore "^5.2.4" | ||
path-type "^5.0.0" | ||
slash "^5.1.0" | ||
unicorn-magic "^0.1.0" | ||
|
||
ignore@^5.2.4: | ||
version "5.3.2" | ||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" | ||
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== | ||
|
||
is-extglob@^2.1.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" | ||
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== | ||
|
||
is-glob@^4.0.1, is-glob@^4.0.3: | ||
version "4.0.3" | ||
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" | ||
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== | ||
dependencies: | ||
is-extglob "^2.1.1" | ||
|
||
is-number@^7.0.0: | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" | ||
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== | ||
|
||
json-schema-traverse@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" | ||
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== | ||
|
||
merge2@^1.3.0: | ||
version "1.4.1" | ||
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" | ||
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== | ||
|
||
micromatch@^4.0.4: | ||
version "4.0.8" | ||
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" | ||
integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== | ||
dependencies: | ||
braces "^3.0.3" | ||
picomatch "^2.3.1" | ||
|
||
normalize-path@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" | ||
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== | ||
|
||
path-type@^5.0.0: | ||
version "5.0.0" | ||
resolved "https://registry.yarnpkg.com/path-type/-/path-type-5.0.0.tgz#14b01ed7aea7ddf9c7c3f46181d4d04f9c785bb8" | ||
integrity sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg== | ||
|
||
picomatch@^2.3.1: | ||
version "2.3.1" | ||
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" | ||
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== | ||
|
||
queue-microtask@^1.2.2: | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" | ||
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== | ||
|
||
randombytes@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" | ||
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== | ||
dependencies: | ||
safe-buffer "^5.1.0" | ||
|
||
require-from-string@^2.0.2: | ||
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" | ||
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== | ||
|
||
reusify@^1.0.4: | ||
version "1.0.4" | ||
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" | ||
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== | ||
|
||
run-parallel@^1.1.9: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" | ||
integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== | ||
dependencies: | ||
queue-microtask "^1.2.2" | ||
|
||
safe-buffer@^5.1.0: | ||
version "5.2.1" | ||
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" | ||
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== | ||
|
||
schema-utils@^4.2.0: | ||
version "4.2.0" | ||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b" | ||
integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw== | ||
dependencies: | ||
"@types/json-schema" "^7.0.9" | ||
ajv "^8.9.0" | ||
ajv-formats "^2.1.1" | ||
ajv-keywords "^5.1.0" | ||
|
||
serialize-javascript@^6.0.2: | ||
version "6.0.2" | ||
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" | ||
integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== | ||
dependencies: | ||
randombytes "^2.1.0" | ||
|
||
slash@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/slash/-/slash-5.1.0.tgz#be3adddcdf09ac38eebe8dcdc7b1a57a75b095ce" | ||
integrity sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg== | ||
|
||
to-regex-range@^5.0.1: | ||
version "5.0.1" | ||
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" | ||
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== | ||
dependencies: | ||
is-number "^7.0.0" | ||
|
||
unicorn-magic@^0.1.0: | ||
version "0.1.0" | ||
resolved "https://registry.yarnpkg.com/unicorn-magic/-/unicorn-magic-0.1.0.tgz#1bb9a51c823aaf9d73a8bfcd3d1a23dde94b0ce4" | ||
integrity sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ== |
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,27 @@ | ||
# 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)) | ||
|
||
2. Start zenohd with websocket plugin (see root [README](../../README.md)) | ||
|
||
3. Build and run chat example. Browser window should automatically open | ||
|
||
```sh | ||
yarn install | ||
yarm build | ||
yarn start | ||
``` | ||
|
||
4. Open second browser window on the same address, connect to server and test the chat | ||
|
||
The example uses "importmap" approach to run the project. This means that the javascript code | ||
is loaded by browser directly, without additional bundling. This is done purposely to | ||
verify that the zenoh-ts library is ready to be used in browser without additional tooling. | ||
|
||
Note though that not all dependent libraries follows this rule. Some of them (e.g. `channel-ts`) | ||
can be used directly in browser only after proper repacking. So when using importmap approach | ||
the dependent libraries are loaded from the [jspm.io](https://jspm.org/cdn/jspm-io) |
Oops, something went wrong.