   _ioStandalone = socketio(httpServer).of k.WS_NAMESPACE
   _ioStandalone.on 'connection', (socket) -> _socketOnConnection socket, config
   httpServer.listen port
-  story.info LOG_SRC, "Server logs available on port #{chalk.cyan port}"
+  mainStory.info LOG_SRC, "Server logs available on port #{chalk.cyan port}"
 
   # If a main application server is also provided, 
   # launch another log server on the same application port

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

            bufferedRecords: _getBufferedRecords hub
        else
          rsp.result = 'ERROR'
          process.nextTick -> mainStory.warn LOG_SRC, "User '#{login}' authentication failed"
        _socketTxMsg socket, rsp
    ## when 'BUFFERED_RECORDS_REQUEST'
    ##   rsp = {type: 'BUFFERED_RECORDS_RESPONSE'}
