Comments (2)
The main admin section has a large part of what you'd need already. I'm tracking sessions in ecto already. So it'd be mostly copy pasting the admin stuff and adding in filters (since it's a straight list right now in the admin.) These are the important links for the admin section:
- https://github.com/oestrich/grapevine/tree/master/lib/web/templates/admin/client_session
- https://github.com/oestrich/grapevine/blob/master/lib/web/controllers/admin/client_session_controller.ex
And if you're curious how the tracking works:
- https://github.com/oestrich/grapevine/blob/master/lib/grapevine/statistics/server.ex
- https://github.com/oestrich/grapevine/blob/master/apps/telnet/lib/telnet/web_client.ex#L57
- https://github.com/oestrich/grapevine/blob/master/apps/telnet/lib/telnet/presence.ex#L103
When a session starts, it tells the presence server that it's online, which saves (via ets) that session's info. That also broadcasts a message to the main node (Statistics.Server
) which does the actual saving into ecto. It's a big convoluted but before I pulled out GrapevineData
the telnet node didn't have a nice way to using ecto things. I haven't gotten around to unwinding this to using the database directly.
from grapevine.
This sounds interesting. Do you track things like this in ets? Anywhere to start reading for implementation hints?
from grapevine.
Related Issues (20)
- Re-arrange the settings page
- Add view count to events
- Generate a session token for socket connections
- Tagging Games
- Calendar view for events HOT 2
- Associated links for Games
- Load a random MUD
- Mix Failure at startup HOT 2
- Play sound in the web client
- Add UID to messages on a channel
- Replay channel messages
- Internal Server Error when trying to upload an image HOT 2
- Secure Telnet option not connecting HOT 6
- Multiple game owners
- allow inserting line breaks in the mud client text input
- Issues with setup HOT 1
- Display an alert instead of disconnecting MSSP for games HOT 1
- Interactive Modal Support HOT 2
- Hosted Sites
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grapevine.