Skip to content

joshnuss/partykit-hibernating-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎈 Hibernating Counter

An example PartyKit server that counts a number and can hibernate.

It keeps track of a single number, and pushes out the value whenever the number changes.

After 10 seconds without any activity, it spins down.

The next time it's accessed, it restores the last state from storage.

Messages

Message Description
inc or increment Increment the number by 1
dec or decrement Decrement the number by 1
reset Reset the number to zero
nnn Set the number to a new value

License

MIT

About

An example PartyKit server that counts a number and can hibernate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published