             message = err.message
 
           if valid
-            message.sid = socket.id
-            wsClient.send JSON.stringify(message)
+            front.auth {'account': 'marak', 'password': 'foo'}, (err, result) ->
+              message[1].sid = socket.id
+              wsClient.send JSON.stringify(message)
           else
             logger.warn 'invalid message - not relaying to api server'
             socket.send message

          #
          # Remark: this is where conditional logic can be placed to authorize the message before it is
          # passed along to an API server
          valid = false

          # Check if incoming message is actually valid JSON

    # 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')
