58cb9c7b39ba6928feecb2c3f28b3272513cc8a4
Introduce a `last_ping` string field on the UserModel to store the timestamp of the user's last activity. Implement `get_online_users` in ChannelService that filters channel members whose `last_ping` is within the last 30 seconds. Add a `ping` RPC endpoint that updates the user's `last_ping` to the current server time. On the client side, emit a "connected" event on WebSocket open, trigger an immediate "online" ping, and schedule a recurring "active" ping every 15 seconds to maintain the online status.
Snek
Slack like chat application with focus on performance
This is a slack like chat application with focus on performance. Other slack-like applications became too heavy. My RocketChat just had an 'frontend' crash. Just an error from the system itself like it's the most normal thing in the world.
Running
At this point, there's nothing officially running but what you can do:
- Install the project:
make install - Run part of the project:
./venv/bin/python -m snek.app - Run other part of the project:
./venv/bin/python -m snek.models
Languages
Python
51.8%
HTML
28%
JavaScript
15.5%
CSS
4.6%