Next.js Discord

Discord Forum

Live visitor count, Best and cheapest way

Answered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Hey looking to have a live visitor count on my website whats the best way to implement thanks.
Answered by Arinji
realtime would need websockets
View full answer

6 Replies

@Spectacled bear do you need realtime updates or will just refreshing work?
@Arinji <@1216061620934148239> do you need realtime updates or will just refreshing work?
Spectacled bearOP
Realtime preferably but would be interesting to learn both.
Answer
and refreshing allowed, use server actions
@Arinji realtime would need websockets
Spectacled bearOP
Will read up about websockets. Thanks arinji
@Spectacled bear Will read up about websockets. Thanks arinji
Np, mark a solution if it helped you :)