         // Call current callback
         if let currentCallback = activeEvents[event] {
             #if DEBUG
-                println("--- event handler")
-                println("Call event: \"\(event)\"")
+                println("--- \(SocketIO.name): Event handler")
+                println("call event: \"\(event)\"")
             #endif
             currentCallback(SocketIOArg.Message(message: message))
         }
         else {
             #if DEBUG
-                println("--- event handler")
-                println("No events")
+                println("--- \(SocketIO.name): Event handler")
+                println("no events")
             #endif
         }
     }

        // Call current callback
        if let currentCallback = activeEvents[event] {
            #if DEBUG
                println("--- event handler")
                println("Call event: \"\(event)\"")
            #endif
            currentCallback(SocketIOArg.JSON(json: json))
        }
        else {
            #if DEBUG
                println("--- event handler")
                println("No events")
            #endif
        }
    }
    
    final func performGlobalEvents(message: String) {
        #if DEBUG
            println("--- event handler")
            println("Call global events: \(globalEvents.count)")
        #endif
        for callback in globalEvents {
            callback(SocketIOArg.Message(message: message))

    
    func off() -> SocketIOEventHandler {
        #if DEBUG
            println("--- \(SocketIO.name): Event handler")
            println("remove all events")
        #endif
        if (activeEvents.count > 0) {
            // Remove all events
