Just hacky wanna-be app to share textual data between all opened instances. Much simpler than an app for chatting.
- Sharing things between PC and Firefox Reality browser where copy-pasting becomes much more convenient than typing within VR/AR by controllers.
- Just for learning and due to my laziness only UTF-8 strings are passed, so even "protocol" is simple.
- Might take a part as a source for teaching someone about WebSockets.
- Clone this repository
- Go to the project directory
npm i
npm run watch
- Open served site under your IP address and port 3000, so
http://<YOUR_NETWORK_CARD'S_IP_ADDRESS>:3000/
I wish it to be a single file project (just like writting in
bash
) without any extra project files, where an interpreter has a rich standard library.
I wish a TypeScript to be the only JavaScript.
Maybe some day I would bundle it as a single file thing. Maybe as a single file in term of .js
/.mjs
or packed by nexe
or zeit/pkg
.
- NodeJS
- TypeScript 3.8 +
ts-node
express
websocket
- Free. VSCode + extension
lit-html
for HTML syntax highlighting within.ts
file