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
Post a Comment