@@ -23,6 +23,28 @@ general: {
23
23
backend = "ws://your.websocket.here"
24
24
# subprotocol = "your-subprotocol"
25
25
26
+ # If the WebSocket server isn't reachable or the client has
27
+ # to reconnect, the default behaviour of the handler plugin
28
+ # is to retry with an exponential back-off, all while buffering
29
+ # events that Janus may keep on pushing. Buffering has no
30
+ # limit, so if reconnecting takes a long time (or forever)
31
+ # memory usage will keep on growing; besides, it may cause
32
+ # a network spike when eventually reconnected, as all stored
33
+ # events would need to be sent to the backend before new
34
+ # ones can be relayed as well. You can prune queued events
35
+ # and put a cap on the amount of bufferint to perform when
36
+ # reconnecting by setting the 'events_cap_on_reconnect'
37
+ # property accordingly: any number you set will be the
38
+ # maximum number of events stored in memory until we
39
+ # reconnect, which means older packets will be discarded
40
+ # if the cap is exceeded. Notice that setting a value
41
+ # of 0 will not mean "drop all packets", but will disable
42
+ # the cap (default behaviour), which means the minimum
43
+ # possible value is 1. Also notice that, when the cap is
44
+ # enabled, this means the event receiver may end up missing key
45
+ # events when a reconnection actually ends up taking place.
46
+ # events_cap_on_reconnect = 10
47
+
26
48
# In case you need to debug connection issues, you can configure
27
49
# the libwebsockets debugging level as a comma separated list of things
28
50
# to debug, supported values: err, warn, notice, info, debug, parser,
0 commit comments