An open API service indexing awesome lists of open source software.

https://github.com/sitetester/user-online-status-notifier


https://github.com/sitetester/user-online-status-notifier

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

This is Java based TCP service, and it satisfies the following points.

1. Start listening for tcp/udp connections.
2. Be able to accept connections.
3. Read json payload ({"user_id": 1, "friends": [2, 3, 4]})
3. After establishing successful connection - it "stores" it in memory.
4. When another connection established with the user_id from the list of any other user's "friends" section, they are notified about it with a message {"online": true}
5. When the user goes offline, his "friends" (if it has any and any of them online) should receive a message {"online": false}