 
       cb authResult.actor, codes.errors.NO_ERROR
 
-  ###
-  Disconnects the current session and socket.
-  @param client - Reference to the client to close
-  ###
+  #
+  # Method which disconnect the websocket
+  # @param client {object} Reference to the client to close
+  #
   disconnect: (client) ->
     if client and client.hClient
-      log.debug "Disconnecting Client " + client.publisher
+      @owner.log "debug", "Disconnecting Client " + client.publisher
       client.socket.disconnect()  if client.socket
       delete clients[client.id]
     else if client

validator = require "../validator"
codes = require "../codes"

class SocketIO_Connector
  ###
  Runs a SocketIO Connector with the given arguments.
  @param args - {
  logLevel : DEBUG, INFO, WARN or ERROR
  port : int
  commandOptions : {} Command Controller Options
  }
  ###
  constructor: (properties) ->
    if properties.owner
    then @owner = properties.owner


    )

  #
  # Method which connect the websocket
  # @param client {object} Reference to the client
  # @param data {object} Connexion data (urn, password)
  #
  connect: (client, data) ->
    unless client
      @owner.log "warn", "A client sent an invalid ID with data", data
