8000 GitHub - danthegoodman1/frontlink-example
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

danthegoodman1/frontlink-example

Repository files navigation

Frontlink example

Example for frontlink.

Running

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!

Frontend

See App.tsx and Page.tsx (open console to see function firing).

Backend

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0