         .login(data)
         .then success, error
 
-    # socket.on "update_platform", ->
-    #   if not which "git"
-    #     return
-
-    #   # Run external tool synchronously
-    #   shell_command = "git pull && npm install"
-    #   if (exec shell_command).code is 0
-    #     socket.emit "update_platform", true
-    #     socket.broadcast.emit "update_platform", true
-
-
     socket.on "get_online_count", (data) ->
-      #socket.emit "get_online_count", io.engine.clientsCount
       broadcastClientCount(data)

  imgur = require("./models/imgur")
  users = require("./models/user")
  Q = require("q")
  #require "shelljs/global"

  io.use (socket, next) ->
    sessionStore socket.request, socket.request.res, next


  default_chat_id = "chat-123"


        .save_topic(data)
        .then (result) ->
          io.to(default_chat_id).emit "topic", result

    socket.on "load_rooms", (data) ->
      rooms
