Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create App Wireframes #9

Open
harveysanders opened this issue Aug 3, 2022 · 3 comments
Open

Create App Wireframes #9

harveysanders opened this issue Aug 3, 2022 · 3 comments

Comments

@harveysanders
Copy link
Collaborator

We need some wireframes or diagrams to visually explain the application. I started a rough draft here. Let's discuss and build off it.

Update this image as necessary:

Image

@hansvb
Copy link
Collaborator

hansvb commented Aug 4, 2022

The Global Session View:

┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                          ┌───────────────────────────────────────────────┐     │
│                                          │nick    | IP             | latency (ms)        │     │
│                                          │-----------------------------------------      │     │
│                                          │jk      | 127.0.0.1:56763 | 23.24              │     │
│                                          │peewee  | 127.0.0.1:68376 | 54.23              │     │
│                                          └───────────────────────────────────────────────┘     │
│                                                                                                │
│                                                                                                │
│                                                                                                │
│                                                               ┌────────────────────────────┐   │
│                                                               │                            │   │
│                                                               │                            │   │
│                                                               │                            │   │
│                                                               │                            │   │
│                                                               │                            │   │
│                                                               │                            │   │
│                                                               │                            │   │
│    ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │                            │   │
│    │C│D│E│F│G│A│B│C│D│E│F│G│A│B│C│D│E│F│G│A│B│C│D│E│F│G│A│B│  │                            │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │jk played C-3               │   │
│    │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │  │peewee played A-4           │   │
│    └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘  │jk played E-3               │   │
│                                                               └────────────────────────────┘   │
│                                                                                                │
│                                                                                                │
└────────────────────────────────────────────────────────────────────────────────────────────────┘

@harveysanders
Copy link
Collaborator Author

This is great for initial setup!

How would we calculate the latency between peers? Periodically send pings to each peer and take the average?

@hansvb
Copy link
Collaborator

hansvb commented Aug 4, 2022

Proposal in protocol-version v0.0.1 is to use the low-level / already implemented in the websocket-stack Ping-Pong-frames. See rog-golang-buddies/rmx#17

How the clients handle the latency-update-information is up to the clients. They could even draw a graph over time or indeed take an average or I was thinking simply updating when a new value comes in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants