mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
acb7d7df5a
When the user provides a function as last argument for socket.emit, socket.io will flag this as an RPC and add a cb as the last argument to the client.on('event', ...) handler on the server side. Without a function as last argument for socket.emit, the callback argument on the server side is undefined, leading to invalid function calls (`undefined()`) and an unhandled exception. The user can also provide lots of other arguments, so the 2nd/3rd ... argument is of arbitrary type, again leading to invalid function calls -- e.g. `1()`. |
||
---|---|---|
.. | ||
AuthorizationManager.coffee | ||
ChannelManager.coffee | ||
ConnectedUsersManager.coffee | ||
DocumentUpdaterController.coffee | ||
DocumentUpdaterManager.coffee | ||
DrainManager.coffee | ||
Errors.coffee | ||
EventLogger.coffee | ||
HealthCheckManager.coffee | ||
HttpApiController.coffee | ||
HttpController.coffee | ||
RedisClientManager.coffee | ||
RoomManager.coffee | ||
Router.coffee | ||
SafeJsonParse.coffee | ||
Utils.coffee | ||
WebApiManager.coffee | ||
WebsocketController.coffee | ||
WebsocketLoadBalancer.coffee |