Proxy websockets connection within webpack-dev-server -


is possible proxy websocket connections within webpack dev server? know how proxy regular http requests backend it's not working websockets, presumably because target in proxy configuration starts http://...

version 1.15.0 of webpack-dev-server supports proxying websocket connections. add following configuration:

devserver: {   proxy: {     '/api': {        target: 'ws://[address]:[port]',        ws: true     },   }, } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -