summaryrefslogtreecommitdiff
path: root/lib/realtime.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change config to camel case with backwards compatibilitySheogorath2018-03-251-6/+6
| | | | | | | | This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Remove and replace all note id compression in LZString with base64urlMax Wu2018-02-261-2/+1
| | | | Signed-off-by: Max Wu <jackymaxj@gmail.com>
* don't require referer to find note id in socket.io connections (fixes #623)Stefan Bühler2018-02-051-6/+14
| | | | Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
* Add option to enable `freely` permission in closed instanceDario Ernst2018-01-201-1/+1
| | | | | | | | Before, closed disallowed guest edits completely, by removing the `freely` permission. This makes it possible to explicitely bring back guest-editing, but not guest-note-creation, to closed instances. Signed-off-by: Dario Ernst <dario@kanojo.de>
* Fix minor typosMax Wu2018-01-161-3/+3
| | | of wrong parameters passing order and wrong user object indexing in for each function
* refactor(config.js): Extract config fileBoHong Li2017-05-081-2/+3
| | | | | * Separate different config source to each files * Freeze config object
* refactor: Remove `require` extension filenameBoHong Li2017-05-081-4/+4
|
* Use strict mode in all backend filesBoHong Li2017-03-141-0/+1
| | | | add ‘use strict’ in all backend file
* Use JavaScript Standard StyleBoHong Li2017-03-081-859/+846
| | | | | Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
* Update realtime to use timer to avoid memory leaks on busy tickWu Cheng-Han2017-02-031-5/+11
|
* Update to remove history cache to lower application couplingWu Cheng-Han2017-02-031-11/+14
|
* Refactor checkViewPermission to fix limited & protected permission check bug ↵Wu Cheng-Han2017-01-161-20/+28
| | | | and fix code style
* Fix for limited and protected permissions should forbid guest in realtime eventsWu Cheng-Han2017-01-121-2/+2
|
* Fix author creation in operationCallback might cause unique constraint ↵Wu Cheng-Han2017-01-121-11/+19
| | | | validation error
* Fix syntax when use case蒼時弦也2017-01-101-1/+1
|
* Add limited and protected permission蒼時弦也2017-01-101-10/+10
|
* Remove LZString compression for data storageWu Cheng-Han2017-01-021-6/+4
|
* Remove manual LZString compression for partial socket io event dataWu Cheng-Han2017-01-021-4/+0
|
* Fixed typo: anonmyousFlorian Rhiem2016-12-211-2/+2
|
* Fix possible user is undefined in realtime eventsWu Cheng-Han2016-12-201-17/+26
|
* Try to fix when server have heavy loading cache might not update to db properlyWu Cheng-Han2016-12-181-1/+1
|
* Add support of allow anonymous config option with correspond modificationsWu Cheng-Han2016-12-151-0/+1
|
* Update to support optional email register and signinWu Cheng-Han2016-12-021-5/+5
|
* Revert "Add workers for notes to leverage CPU intensive work loading"Wu Cheng-Han2016-11-161-71/+90
| | | | This reverts commit 4ccfdfa538d2fd7e9ee63e937435a7f6fc622c12.
* Add workers for notes to leverage CPU intensive work loadingWu Cheng-Han2016-11-071-90/+71
|
* Fix socket disconnect might interrupt loop issueWu Cheng-Han2016-10-141-3/+9
|
* Fix to handle undefined document on update historyWu Cheng-Han2016-10-121-2/+2
|
* Try to fix memory leaks by clear OT server before disconnect noteWu Cheng-Han2016-10-101-0/+3
|
* Update to support delete noteWu Cheng-Han2016-10-101-0/+29
|
* Update to send note title on emit check and refresh eventWu Cheng-Han2016-10-101-1/+4
|
* Update to make note history count in server-side when user loggedWu Cheng-Han2016-10-101-0/+14
|
* Add more comments in the code and remove unused code fileWu Cheng-Han2016-10-101-0/+3
|
* Update to prevent duplicate socket push in queue in order to lower down ↵Wu Cheng-Han2016-10-101-0/+12
| | | | server loading
* Update to move authorship calculation code to note model and support update ↵Wu Cheng-Han2016-10-101-100/+1
| | | | authorship after making revision of docs
* Update to add revision saving policyWu Cheng-Han2016-09-181-2/+2
|
* Update to change the last change user saving strategyWu Cheng-Han2016-08-151-2/+2
|
* Update realtime check and refresh event, compress data using LZString UTF16 ↵Wu Cheng-Han2016-08-021-2/+5
| | | | to minimize network delay
* Update to make random color more discreteWu Cheng-Han2016-07-301-7/+3
|
* Fix user color is not following the author colorWu Cheng-Han2016-07-301-0/+4
|
* Add support of showing authorship in editor and adjust related stylesWu Cheng-Han2016-07-301-1/+5
|
* Add support of saving authors and authorshipWu Cheng-Han2016-07-301-2/+154
|
* Fix realtime on forbidden not clean up properly and handle on updating note ↵Wu Cheng-Han2016-07-301-9/+18
| | | | which already been clean up
* Fix potential memory leaks on realtime client disconnect not clean up server ↵Wu Cheng-Han2016-07-131-0/+2
| | | | properly
* Fix realtime on finishConnection might not clear and connect next socket in ↵Wu Cheng-Han2016-07-051-6/+14
| | | | queue and should use shift instead of pop on remove invalid socket in queue
* Try to solve potential memory leaksWu Cheng-Han2016-07-021-0/+2
|
* Try to solve realtime connection get stock when lots of client try to ↵Cheng-Han, Wu2016-06-171-1/+5
| | | | connect at same moment
* Add minimumCompatibleVersion and update refresh modal to show more detail ↵Cheng-Han, Wu2016-06-171-1/+4
| | | | informations
* Fix locked or private permission should block any operation if owner is nullCheng-Han, Wu2016-06-171-2/+2
|
* Add support of saving note revision and improve app start and stop procedure ↵Cheng-Han, Wu2016-06-171-5/+23
| | | | to ensure data integrity
* Add maintenance mode and update to gracefully exit process on signalCheng-Han, Wu2016-06-011-3/+7
|