Beaudan
580931c4fb
Pass ourKey to message api, initialise these APIs after registration or when storage is ready so we always have ourKey
6 years ago
Beaudan
ee260f7de0
Fix silly filtering bug, add filtering for swarm nodes and lint
6 years ago
Beaudan
c5c01b0ac8
Purge retrieving snodes
6 years ago
Beaudan
d12f6b6d32
Handle swarm nodes the same for us or contacts, attach our key to message api object
6 years ago
Beaudan
d5546b9473
Lint
6 years ago
Beaudan
b6b0248e9d
Retrieve from seed
6 years ago
Beaudan
1f74088586
Send to IP
6 years ago
Beaudan
6b2b9ce926
Remove default port and use port from storage server responses
6 years ago
Beaudan
eea2b8e6a7
Do port null check inside rpc call
6 years ago
Beaudan
52c191fc94
Merge branch 'development' into clearnet
6 years ago
sachaaaaa
9d6c5bff36
make unverified https queries to the snodes
6 years ago
Beaudan
7141847dfb
Restart sendMessage logic if PoW changed an dfix NaN bug
6 years ago
Beaudan
f01d8088b7
Remove development PoW
6 years ago
Beaudan
dbcaaf98dc
Lint
6 years ago
Beaudan
c27d1ef69a
Clean some stuff in loki_rpc and get new difficulty from successful requests
6 years ago
Beaudan
e520bf109a
Persist PoW difficulty and update if get response from snodes
6 years ago
Beaudan
18a87d5463
Review changes
6 years ago
Beaudan
c02d5d4053
Lint
6 years ago
Beaudan
709db4bf54
Make sendMessage take options, remove redundant retrieve function and get constant
6 years ago
Beaudan
b43978ece1
Initial refactoring of sendmessage
6 years ago
sachaaaaa
1b1c18b928
Patch from Beau
6 years ago
sachaaaaa
edd5915bf2
Fix use .length on object
6 years ago
sachaaaaa
5f77f751d9
Replace generator function and other various fixes
6 years ago
sachaaaaa
09a9cfbf37
Refactor long polling for better concurrent requests
6 years ago
Beaudan
e63e9b9053
Small optimisation
6 years ago
Beaudan
faf1b4b66b
Lint
6 years ago
Beaudan
620380d2d9
Move filter messages to message api and some other cleaning
6 years ago
Beaudan
377e90bafe
Include long polling header for retrieve messages, extend retrieveMessages timeout to 40 seconds, reduce default tmeout to 5 seconds, remove dev/prod poll time difference
6 years ago
Beaudan
db8f8ba36f
Multiple all ttl values by 1000 and stop dividing timestamp by 1000 so they are both milliseconds
6 years ago
Beaudan
f076f94e71
Clearer last hash line
6 years ago
Beaudan
fa7042c043
Added wrong swarm error which gets thrown if we receive a 421 error, update the swarm lists if we get one of those errors
6 years ago
Beaudan
0f771d4db4
Rename loki_fetch to loki_rpc
6 years ago
Beaudan
b09f2970fc
Move NotFoundError to errors.js
6 years ago
Beaudan
929d272fcc
Fixed bugs with http being appended at wrong time and lastHash not being sent properly
6 years ago
Beaudan
531ee92dcb
Updated messenger to work with slightly different storage server API and changed swarm requests to go through storage server
6 years ago
Beaudan
6656a89092
Cleaned up a lot of the logs, stop them from printing more than once etc
6 years ago
sachaaaaa
53b0574a1f
Merge branch 'development' into channel_encryption
...
* development:
Manually set the dns servers for windows
Refactor local_loki_server
Refactor rpc calls to its own function.
# Conflicts:
# js/modules/loki_message_api.js
6 years ago
sachaaaaa
55e0ff1a88
Merge pull request #208 from Mikunj/message-api-refactor
...
Refactor rpc call to its own function.
6 years ago
sachaaaaa
ad5efc9ba3
lint
6 years ago
sachaaaaa
aa722590fa
use channel encryption with storage server
6 years ago
Mikunj
4a037387e9
Refactor rpc calls to its own function.
6 years ago
Mikunj
06be1da40d
Added p2p message styling
6 years ago
Beaudan
c0a6ba25bc
Update p2p messages to follow the same endpoint format as storage server. Clean up message_api a lil bit and updated tests
6 years ago
Beaudan
d6a210efaa
Reworked the update p2p details to be more robust and stopped some redundant pings from happening
6 years ago
Beaudan
25ded46e2c
Fixed some bugs removing nodes after the first failure instead of waiting for the failure count and also reduced the number of errors logged and made some warnings
6 years ago
Beaudan
b00a0cb699
Rename isOnline to isPing for clarity, and reduce the ttl for online broadcast messages to 1 min
6 years ago
sachaaaaa
d3f23db049
serialise objects to json before node-fetch
6 years ago
sachaaaaa
8eac72b60c
Fix typo
6 years ago
sachaaaaa
ed1d06d9ce
use 'params' as per json_rpc
6 years ago
sachaaaaa
159dc711e1
use new message json rpc API
6 years ago