mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
8 lines
343 B
CoffeeScript
8 lines
343 B
CoffeeScript
|
WebsocketLoadBalancer = require "./WebsocketLoadBalancer"
|
||
|
logger = require "logger-sharelatex"
|
||
|
|
||
|
module.exports = HttpApiController =
|
||
|
sendMessage: (req, res, next) ->
|
||
|
logger.log {message: req.params.message}, "sending message"
|
||
|
WebsocketLoadBalancer.emitToRoom req.params.project_id, req.params.message, req.body
|
||
|
res.send 204 # No content
|