mhkeller / fun-with-sockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple code exploration, inspired by (and stollen from) Björn Staal. More info here.

Screen Recording 2023-11-23 at 11 12 57

How to run this experiment locally:

  1. npm i
  2. Then, open one more terminal.
  3. In the first terminal: node server/server.js
  4. In the second terminal: cd client && http-server
  5. Open localhost:8080?b=1 in one tab, and
  6. Open localhost:8080?b=2 in another tab

Future ideas

  1. I plan to add a flag to run this in localStorage mode only
  2. I plan to add an option for an infinity number of windows and remove the need for the query in the URL

About


Languages

Language:JavaScript 71.0%Language:CSS 20.6%Language:HTML 8.4%