 
 rclient = require("redis-sharelatex").createClient(Settings.redis.realtime)
 
-app.get "/health_check/redis", (req, res, next) ->
+healthCheck = (req, res, next)->
 	rclient.healthCheck (error) ->
 		if error?
 			logger.err {err: error}, "failed redis health check"

cookieParser = CookieParser(Settings.security.sessionSecret)

sessionSockets = new SessionSockets(io, sessionStore, cookieParser, Settings.cookieName)

io.configure ->
	io.enable('browser client minification')


# work around frame handler bug in socket.io v0.9.16
require("./socket.io.patch.js") 
# Set up socket.io server
app = express()

server = require('http').createServer(app)
io = require('socket.io').listen(server)

