{"action":"created","issue":{"url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/119","labels_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/119/comments","events_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/119/events","html_url":"https://github.com/SocketCluster/socketcluster/issues/119","id":112234387,"number":119,"title":"Trying to use EJS templates in worker","user":{"login":"pandafinity","id":3674603,"avatar_url":"https://avatars.githubusercontent.com/u/3674603?v=3","gravatar_id":"","url":"https://api.github.com/users/pandafinity","html_url":"https://github.com/pandafinity","followers_url":"https://api.github.com/users/pandafinity/followers","following_url":"https://api.github.com/users/pandafinity/following{/other_user}","gists_url":"https://api.github.com/users/pandafinity/gists{/gist_id}","starred_url":"https://api.github.com/users/pandafinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandafinity/subscriptions","organizations_url":"https://api.github.com/users/pandafinity/orgs","repos_url":"https://api.github.com/users/pandafinity/repos","events_url":"https://api.github.com/users/pandafinity/events{/privacy}","received_events_url":"https://api.github.com/users/pandafinity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T21:13:48Z","updated_at":"2015-10-19T21:21:09Z","closed_at":null,"body":"Hi,\r\n\r\nI'm new to using SocketCluster, which I think is great but I am having problems with the Server.  I am trying to use SocketCluster with an existing app but when I use the code there is no response from the client, which suggests it's not being connected.\r\n\r\n```javascript\r\nmodule.exports.run = function (worker) {\r\n  console.log('   >> Worker PID:', process.pid);\r\n\r\n  var httpServer = worker.httpServer;\r\n  var scServer = worker.scServer;\r\n  var app = express();\r\n  var router = require('../controllers');\r\n  var publicPath = path.join(__dirname,'../../client/public');\r\n  var viewsPath = path.join(__dirname, '../../client/views');\r\n\r\n  app.use(express.static(publicPath));\r\n\r\n  httpServer.on('req', app);\r\n  dummyData.attach(scServer);\r\n  accessControl.attach(scServer);\r\n\r\n  app.set('view engine', 'ejs');\r\n  app.set('views', viewsPath);\r\n\r\n  app.use(compression({ threshold: 512 })); //gzip\r\n\tapp.use(bodyParser.urlencoded({ extended: true }));\r\n\tapp.use(bodyParser.json());\r\n\tapp.get('/',router);\r\n\r\n  scServer.on('connection', function (socket) {\r\n    authentication.attach(scServer, socket);\r\n    var restOptions = {\r\n      pageSize: 5\r\n    };\r\n    realtimeRest.attach(scServer, socket, restOptions);\r\n  });\r\n};\r\n```\r\nWhat is it I am not seeing?\r\nYour example uses:\r\n```javascript\r\nvar app = require('express')();\r\n```\r\nWhere I use :\r\n```javascript\r\nvar app = require('express');\r\n```\r\nBut I am not sure if it is just that...\r\n\r\nAny info would be greatly appreciated :)\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/comments/149351001","html_url":"https://github.com/SocketCluster/socketcluster/issues/119#issuecomment-149351001","issue_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/119","id":149351001,"user":{"login":"pandafinity","id":3674603,"avatar_url":"https://avatars.githubusercontent.com/u/3674603?v=3","gravatar_id":"","url":"https://api.github.com/users/pandafinity","html_url":"https://github.com/pandafinity","followers_url":"https://api.github.com/users/pandafinity/followers","following_url":"https://api.github.com/users/pandafinity/following{/other_user}","gists_url":"https://api.github.com/users/pandafinity/gists{/gist_id}","starred_url":"https://api.github.com/users/pandafinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandafinity/subscriptions","organizations_url":"https://api.github.com/users/pandafinity/orgs","repos_url":"https://api.github.com/users/pandafinity/repos","events_url":"https://api.github.com/users/pandafinity/events{/privacy}","received_events_url":"https://api.github.com/users/pandafinity/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:21:09Z","updated_at":"2015-10-19T21:21:09Z","body":"Will try that now - thanks.\r\nWhat snippet?"}}