Example for frontlink.
First:
https://github.com/danthegoodman1/frontlink-example
cd frontlink-example
npm i
In one terminal:
npm run dev
In another:
npm run server
Then load 2 browser instances and watch state updates reflect on each client, and look at the console to see the function call from one client trigger in the other!
See App.tsx and Page.tsx (open console to see function firing).
A simple express server with websocket support in index.ts. This has basic room management (in memory), and handles unexpected and graceful client disconnects. It does not implement presence notifications (emitting Roommate(Un)Subscribed
events), but comments where it would.