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
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
.gitignore
.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
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
Makefile add fake lint and format targets 2020-05-28 16:09:27 +02:00
nodemon.json
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