mirror of
https://github.com/tinode/chat.git
synced 2025-03-14 10:05:07 +00:00
documentation changes
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
Instant messaging server. Backend in pure [Go](http://golang.org) (license [GPL 3.0](http://www.gnu.org/licenses/gpl-3.0.en.html)), client-side binding in Java for Android and Javascript (license [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)), persistent storage [RethinkDB](http://rethinkdb.com/), JSON over websocket (long polling is also available). No UI components other than demo apps. Tinode is meant as a replacement for XMPP.
|
||||
|
||||
Version 0.13. This is beta-quality software: feature-complete but probably with some bugs. Follow [instructions](INSTALL.md) to install and run. Read [API documentation](API.md).
|
||||
Version 0.13. This is beta-quality software: feature-complete but probably with bugs. Follow [instructions](INSTALL.md) to install and run. Read [API documentation](API.md).
|
||||
|
||||
A javascript demo is (usually) available at http://api.tinode.co/x/example-react-js/ ([source](https://github.com/tinode/example-react-js/)). Login as one of `alice`, `bob`, `carol`, `dave`, `frank`. Password is `<login>123`, e.g. login for `alice` is `alice123`. [Android demo](https://github.com/tinode/android-example) is mostly stable and functional. See screenshots below.
|
||||
|
||||
@ -42,7 +42,7 @@ individually. The maximum number of members will be limited to a reasonably high
|
||||
* Group messaging with unlimited number of members with bearer token access control.
|
||||
* Failover/hot standby/replication.
|
||||
* Federation.
|
||||
* Different levels of message persistence (from strict persistence to store until delivered to purely ephemeral messaging).
|
||||
* Different levels of message persistence (from strict persistence to "store until delivered" to purely ephemeral messaging).
|
||||
* Support for binary wire protocol.
|
||||
* Anonymous users.
|
||||
* Support for other SQL and NoSQL backends.
|
||||
@ -56,5 +56,5 @@ individually. The maximum number of members will be limited to a reasonably high
|
||||
|
||||
### Android
|
||||
|
||||
<img src="android-contacts.png" alt="android screenshot" width=270 />
|
||||
<img src="android-chats.png" alt="android screenshot" width=270 />
|
||||
<img src="android-messages.png" alt="javascript app screenshot" width=270 />
|
||||
|
BIN
android-chats.png
Normal file
BIN
android-chats.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
Binary file not shown.
Before Width: | Height: | Size: 125 KiB |
Binary file not shown.
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 244 KiB |
@ -235,9 +235,14 @@ func gen_rethink(reset bool, dbsource string, data *Data) {
|
||||
toInsert := 80
|
||||
// Starting 4 days ago
|
||||
timestamp := time.Now().UTC().Round(time.Millisecond).Add(time.Second * time.Duration(-3600*24*4))
|
||||
subIdx := rand.Intn(len(data.Subscriptions))
|
||||
for i := 0; i < toInsert; i++ {
|
||||
// At least 20% of subsequent messages should come from the same user in the same topic.
|
||||
if rand.Intn(5) > 0 {
|
||||
subIdx = rand.Intn(len(data.Subscriptions))
|
||||
}
|
||||
|
||||
sub := data.Subscriptions[rand.Intn(len(data.Subscriptions))]
|
||||
sub := data.Subscriptions[subIdx]
|
||||
topic := nameIndex[sub["topic"].(string)]
|
||||
from := types.ParseUid(nameIndex[sub["user"].(string)])
|
||||
if topic == oldTopic && from == oldFrom {
|
||||
|
Reference in New Issue
Block a user