This is my code.
if !module.parent try hons_server.listen config.port console.log \'Listening to port \' + config.port catch err
Listen for the error event on the server isntance
error
hons_server.on 'error', (err) -> console.log 'there was an error:', err.message