overleaf/services/real-time
Jakob Ackermann 5f7841526f [misc] RoomManager: emitOnCompletion: properly handle Promise rejections
```
result = Promise.all([<Promise that rejects eventually>]) # rejection 1
result.then () -> RoomEvents.emit(eventName)              # rejection 2
result.catch (err) -> RoomEvents.emit(eventName, err)     # handle r1
```
As shown above, the second rejection remains unhandled. The fix is to
 chain the `.catch()` onto the `.then()` Promise.
2020-06-17 09:29:12 +01:00
..
.github add public link to contributing docs 2019-10-25 13:22:58 -04:00
app/coffee [misc] RoomManager: emitOnCompletion: properly handle Promise rejections 2020-06-17 09:29:12 +01:00
config [misc] config: add headroom for JSON serialization in maxUpdateSize 2020-03-24 16:21:29 +01:00
test [misc] RoomManager: emitOnCompletion: properly handle Promise rejections 2020-06-17 09:29:12 +01:00
.dockerignore update build scripts, acceptence tests now pass. includes dockerfile 1.1.3 2018-05-23 15:00:46 +01:00
.gitignore Add **/*.map to .gitignore 2019-01-08 14:28:10 +00:00
.nvmrc update node to v10.21.0 2020-06-03 09:12:21 +01:00
app.coffee [misc] vendor a patched session.socket.io middleware 2020-06-09 15:21:33 +01:00
buildscript.txt update node to v10.21.0 2020-06-03 09:12:21 +01:00
docker-compose.ci.yml [misc] cleanup unused dependency on mongo 2020-02-12 14:44:01 +01:00
docker-compose.yml update node to v10.21.0 2020-06-03 09:12:21 +01:00
Dockerfile update node to v10.21.0 2020-06-03 09:12:21 +01:00
Jenkinsfile [misc] update the build scripts to 1.3.5 2020-02-11 12:27:56 +01:00
Makefile add fake lint and format targets 2020-05-28 16:09:27 +02:00
nodemon.json update build scripts, acceptence tests now pass. includes dockerfile 1.1.3 2018-05-23 15:00:46 +01:00
package-lock.json [misc] vendor a patched session.socket.io middleware 2020-06-09 15:21:33 +01:00
package.json [misc] vendor a patched session.socket.io middleware 2020-06-09 15:21:33 +01:00
socket.io.patch.js [perf] add a few short cuts to the packet decoding 2020-06-09 15:26:17 +01:00