Skip to content

How to disable socket.io's pingInterval/pingTimeout in dev mode #11543

Answered by kittaakos
kittaakos asked this question in Q&A
Discussion options

You must be logged in to vote

I customized the MessagingContribution downstream and used a much bigger ping timeout when running in dev mode.

diff --git a/.vscode/launch.json b/.vscode/launch.json
index 06f959e8..045609c0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -21,7 +21,8 @@
         "--plugins=local-dir:../plugins",
         "--hosted-plugin-inspect=9339",
         "--content-trace",
-        "--open-devtools"
+        "--open-devtools",
+        "--no-timeout",
       ],
       "env": {
         "NODE_ENV": "development"
@@ -56,7 +57,8 @@
         "--remote-debugging-port=9222",
         "--no-app-auto-install",
         "--plugins=local-dir:../plugins",
-        "--hosted-plugin-inspect=9339"
+

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kittaakos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant