mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Configure devServer client websocket to avoid [object Event] messages
cgen-175205ff54f14be4a1c7d26e16c61cf4
This commit is contained in:
parent
3cccc75860
commit
700215ed3f
1 changed files with 10 additions and 0 deletions
|
|
@ -40,6 +40,16 @@ module.exports = {
|
||||||
allowedHosts: "all",
|
allowedHosts: "all",
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 8080,
|
port: 8080,
|
||||||
|
client: {
|
||||||
|
// Ensure websocket connects to the expected host/port when proxied
|
||||||
|
webSocketURL: {
|
||||||
|
hostname: "localhost",
|
||||||
|
port: 8080,
|
||||||
|
protocol: "ws",
|
||||||
|
pathname: "/sockjs-node"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
webSocketServer: "ws",
|
||||||
watchFiles: [],
|
watchFiles: [],
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue