{"action":"opened","issue":{"url":"https://api.github.com/repos/primus/primus/issues/489","repository_url":"https://api.github.com/repos/primus/primus","labels_url":"https://api.github.com/repos/primus/primus/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/primus/primus/issues/489/comments","events_url":"https://api.github.com/repos/primus/primus/issues/489/events","html_url":"https://github.com/primus/primus/issues/489","id":175626396,"number":489,"title":"ws required when using uws","user":{"login":"sabrehagen","id":1094600,"avatar_url":"https://avatars.githubusercontent.com/u/1094600?v=3","gravatar_id":"","url":"https://api.github.com/users/sabrehagen","html_url":"https://github.com/sabrehagen","followers_url":"https://api.github.com/users/sabrehagen/followers","following_url":"https://api.github.com/users/sabrehagen/following{/other_user}","gists_url":"https://api.github.com/users/sabrehagen/gists{/gist_id}","starred_url":"https://api.github.com/users/sabrehagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabrehagen/subscriptions","organizations_url":"https://api.github.com/users/sabrehagen/orgs","repos_url":"https://api.github.com/users/sabrehagen/repos","events_url":"https://api.github.com/users/sabrehagen/events{/privacy}","received_events_url":"https://api.github.com/users/sabrehagen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-07T22:57:22Z","updated_at":"2016-09-07T22:57:22Z","closed_at":null,"body":"I'm being asked to install `ws` as a dependency when using the `uws` transformer. Why is this? At no point in my code do I use the `websockets` transformer.\r\n\r\n**Version:**\r\n6.0.2\r\n\r\n**Environment:**\r\n  - **Operating system:**\r\n  Alpine Linux\r\n  - **Browser:**\r\n  N/A\r\n  - **Node.js:**\r\n  v6.5.0\r\n**Expected result:**\r\n  No Error\r\n**Actual result:**\r\n  `Error: Missing required `ws` module. Please run `npm install --save ws``\r\n**Steps to reproduce:**\r\n```\r\nconst Socket = Primus.createSocket({ transformer : 'uws' });\r\nconst socket = new Socket(`${host}:${port}`);\r\n```\r\nGets error:\r\n\r\n```\r\nprimus.js:3027\r\n  throw err;\r\n  ^\r\n\r\nError: Missing required `ws` module. Please run `npm install --save ws`\r\n    at Primus.client (primus.js:3069:40)\r\n    at Primus.initialise (primus.js:2419:10)\r\n    at new Primus (primus.js:2051:10)\r\n    at module.exports (userland code)\r\n```"}}
{"actor":{"display_login":"sabrehagen"}}