Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websockets - chrome and firefox differences?

On my site I am using wss:// protocol for chat etc.

When I connect to my site through Chrome, everything works just fine. But if I use Firefox, it disconnects after few minutes. Client code for both browsers is the same, so why is Firefox behaving that way?

like image 408
ojek Avatar asked Sep 02 '25 09:09

ojek


1 Answers

The Firefox defaults are:

  • network.websocket.max-connections: 200
  • network.websocket.timeout.close: 20
  • network.websocket.timeout.open: 20
  • network.websocket.timeout.ping.request: 10
  • network.websocket.timeout.ping.response: 10

The Chromium defaults are listed in the following Chrome URL:

chrome://net-internals/#sockets

References

  • about:config Entries

  • Network Stack Objectives

  • Chromium Source: URL Constants

  • Webkit 2 Source: FeatureDefines.xcconfig

  • Chromium Source: Content Switches
like image 146
Paul Sweatte Avatar answered Sep 05 '25 02:09

Paul Sweatte