{"action":"created","issue":{"url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/274","repository_url":"https://api.github.com/repos/chimurai/http-proxy-middleware","labels_url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/274/comments","events_url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/274/events","html_url":"https://github.com/chimurai/http-proxy-middleware/issues/274","id":330742541,"node_id":"MDU6SXNzdWUzMzA3NDI1NDE=","number":274,"title":"onProxyReq not called when `ws: true`","user":{"login":"rafaelsales","id":1196663,"node_id":"MDQ6VXNlcjExOTY2NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1196663?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelsales","html_url":"https://github.com/rafaelsales","followers_url":"https://api.github.com/users/rafaelsales/followers","following_url":"https://api.github.com/users/rafaelsales/following{/other_user}","gists_url":"https://api.github.com/users/rafaelsales/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelsales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelsales/subscriptions","organizations_url":"https://api.github.com/users/rafaelsales/orgs","repos_url":"https://api.github.com/users/rafaelsales/repos","events_url":"https://api.github.com/users/rafaelsales/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelsales/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T17:31:42Z","updated_at":"2018-06-09T15:35:32Z","closed_at":null,"author_association":"NONE","body":"```\r\nconst proxy = proxy('/websockets', {\r\n  target: <...>,\r\n  changeOrigin: true,\r\n  ws: true,\r\n  onProxyReq: (...args) => {\r\n    console.log('websockets proxy req', args)\r\n  }\r\n})\r\n```\r\n\r\nThe method onProxyReq is never called - is this expected behavior but the target replacement works."},"comment":{"url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/comments/395978202","html_url":"https://github.com/chimurai/http-proxy-middleware/issues/274#issuecomment-395978202","issue_url":"https://api.github.com/repos/chimurai/http-proxy-middleware/issues/274","id":395978202,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTk3ODIwMg==","user":{"login":"chimurai","id":655241,"node_id":"MDQ6VXNlcjY1NTI0MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/655241?v=4","gravatar_id":"","url":"https://api.github.com/users/chimurai","html_url":"https://github.com/chimurai","followers_url":"https://api.github.com/users/chimurai/followers","following_url":"https://api.github.com/users/chimurai/following{/other_user}","gists_url":"https://api.github.com/users/chimurai/gists{/gist_id}","starred_url":"https://api.github.com/users/chimurai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimurai/subscriptions","organizations_url":"https://api.github.com/users/chimurai/orgs","repos_url":"https://api.github.com/users/chimurai/repos","events_url":"https://api.github.com/users/chimurai/events{/privacy}","received_events_url":"https://api.github.com/users/chimurai/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T15:35:32Z","updated_at":"2018-06-09T15:35:32Z","author_association":"OWNER","body":"you can use `onProxyReqWs` for WebSockets"}}
{"actor":{"display_login":"chimurai"}}