         wsClient.send 'i am front-end ' + process.pid
 
         wsClient.on 'message', (message) ->
-          
+
           logger.info('front ' + process.pid +  ' received message: ' + message);
 
           valid = false

            message = err.message

          if valid
            message.sid = socket.id
            wsClient.send JSON.stringify(message)
          else
            logger.warn 'invalid message - not relaying to api server'
            socket.send message

    # Default front.start options
    options.port = options.port || 3000
    options.host = options.host || "0.0.0.0"
    options.apiEndpoint = options.apiEndpoint || "ws://0.0.0.0:3001"

    express = require('express')
    connect = require('connect')
