         .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)

        .create(data)
        .then (result) ->
          io.to(default_chat_id).emit "room_created", result
          #socket.broadcast.emit "room_created", result


    socket.on "signup", (data) ->
      error = (error) ->

                socket.broadcast.emit "url_data", data

          io.to(default_chat_id).emit "save_chat_message", result

    socket.on "load_topic", (data) ->
      chat
