         rsp = {type: 'LOGIN_RESPONSE'}
         if fAuthValid
           rsp.result = 'SUCCESS'
-          story.info LOG_SRC, "User '#{login}' authenticated successfully"
+          process.nextTick -> mainStory.info LOG_SRC, "User '#{login}' authenticated successfully"
           socket.sbAuthenticated = true
           socket.join 'AUTHENTICATED'
           rsp.data = 

    _ioServerAdaptor.on 'connection', (socket) -> _socketOnConnection socket, config
    try
      port2 = _ioServerAdaptor.server.httpServer.address().port
      story.info LOG_SRC, "Server logs also available through main HTTP server on port #{chalk.cyan port2}"
    catch
      story.info LOG_SRC, "Server logs also available through main HTTP server (#{chalk.red 'port could not be determined'})"
  return

_socketOnConnection = (socket, config) ->


_socketRxMsg = (socket, msg) ->
  {type, data} = msg
  {mainStory, hub} = socket.sbConfig
  switch type
    when 'LOGIN_REQUEST'
      {authenticate} = socket.sbConfig
