docs/book/searchindex.js

1 line
48 KiB
JavaScript
Raw Normal View History

2021-04-16 15:46:58 +00:00
Object.assign(window.search, {"doc_urls":["Hole.html#hole-chat","Message-flow.html#message-flow","Protocol.html#hole-protocol","Protocol.html#process-of-messaging","Protocol.html#user-ids","Protocol.html#message-request","Protocol.html#message-sending","Protocol.html#adding-friend","API.html#hole-frontend-api","API.html#requests","API.html#startapp","API.html#stopapp","API.html#loadusers","API.html#sendmessage","API.html#adduser","API.html#loadmessages"],"index":{"documentStore":{"docInfo":{"0":{"body":0,"breadcrumbs":3,"title":2},"1":{"body":110,"breadcrumbs":5,"title":2},"10":{"body":5,"breadcrumbs":3,"title":1},"11":{"body":2,"breadcrumbs":3,"title":1},"12":{"body":2,"breadcrumbs":3,"title":1},"13":{"body":7,"breadcrumbs":3,"title":1},"14":{"body":8,"breadcrumbs":3,"title":1},"15":{"body":15,"breadcrumbs":3,"title":1},"2":{"body":0,"breadcrumbs":4,"title":2},"3":{"body":29,"breadcrumbs":4,"title":2},"4":{"body":34,"breadcrumbs":4,"title":2},"5":{"body":26,"breadcrumbs":4,"title":2},"6":{"body":24,"breadcrumbs":4,"title":2},"7":{"body":15,"breadcrumbs":4,"title":2},"8":{"body":0,"breadcrumbs":5,"title":3},"9":{"body":34,"breadcrumbs":3,"title":1}},"docs":{"0":{"body":"","breadcrumbs":"How it works » Hole chat","id":"0","title":"Hole chat"},"1":{"body":"(pseudocode in Bash style) Hole receiving messages by looking for new items in \"user's bin\" (place where new messages arrives). Because of how freenet works, we can't just say \"Hey! Do I have new messages?\", we can specify messages index like: \"Hey! Gimme 15th message\". Thus we must remember previous message index and to receive the new message we're requesting for 16th message, if we was able to get 15th message. That's mean, what interlocutor also have to know the last message index in our bin. But how he can know it, if there's a lot of other users who also sending messages to our bin? Of course, you can try to receive all messages from the index, you had last remembered, and next index, next, next... until you find the index which does not exist. But it's a freenet, it's take too much time; The solution is unique Id. User creating and giving his/her unique id to each new interlocutor. And when, if interlocutor sending the message he knows, that last message to us had index $N and sends message with index $N+1, if be more verbose, the new message index he send to us will look like \"$(ID)_($N+1)\"","breadcrumbs":"How it works » Message flow » Message flow","id":"1","title":"Message flow"},"10":{"body":"Require when when client started. { type: \"startApp\"\n}","breadcrumbs":"Frontend API » StartApp","id":"10","title":"StartApp"},"11":{"body":"{ type: \"stopApp\"\n}","breadcrumbs":"Frontend API » StopApp","id":"11","title":"StopApp"},"12":{"body":"{ type: \"loadUsers\"\n}","breadcrumbs":"Frontend API » LoadUsers","id":"12","title":"LoadUsers"},"13":{"body":"{ type: \"sendMessage\", userId: \"UUID_V4...\", message: \"hellow world\"\n}","breadcrumbs":"Frontend API » SendMessage","id":"13","title":"SendMessage"},"14":{"body":"{ type: \"addUser\", name: \"username\", signKey: \"USK@key...\", insertKey: \"insertkey...\"\n}","breadcrumbs":"Frontend API » AddUser","id":"14","title":"AddUser"},"15":{"body":"Requesting count messages from userId started from startIndex's message { type: \"loadMessages\", userId: \"UUID_V4...\", count: 10, startIndex: 30\n}","breadcrumbs":"Frontend API » LoadMessages","id":"15","title":"LoadMessages"},"2":{"body":"","breadcrumbs":"Protocol description » Hole Protocol","id":"2","title":"Hole Protocol"},"3":{"body":"Each user have kind of a bin among freenet network,in which anyone can put message. And for each user this bin is his USK insert key. Each message signed by sender. And user can answer to sender, buy putting message at sender insert key if he know it.","breadcrumbs":"Protocol description » Process of messaging","id":"3","title":"Process of messaging"},"4":{"body":"Each user have unique pseudonym for each user whom he communicates. Thos pseudonyms uses by user to identify who is sender end establish message flow. The \