@apocaliss92/nodelink-js 0.5.1-beta.7 → 0.5.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -42137,9 +42137,20 @@ CSeq: ${cseq}\r
42137
42137
  switch (method) {
42138
42138
  case "OPTIONS":
42139
42139
  send(200, "OK", {
42140
- Public: "OPTIONS, DESCRIBE, SETUP, PLAY, RECORD, TEARDOWN"
42140
+ Public: "OPTIONS, DESCRIBE, SETUP, PLAY, RECORD, TEARDOWN, GET_PARAMETER, SET_PARAMETER"
42141
42141
  });
42142
42142
  return;
42143
+ // RFC 2326 §10.8 keepalive. Frigate's bundled go2rtc 1.9.10 sets a
42144
+ // ~30s read deadline on the producer socket during RECORD; without
42145
+ // a periodic reply on the same TCP connection that deadline fires
42146
+ // and the client gives up with "i/o timeout". go2rtc sends an empty
42147
+ // GET_PARAMETER (no body) as the keepalive — we just need to
42148
+ // acknowledge it. SET_PARAMETER is accepted for symmetry with
42149
+ // clients that prefer it for keepalive.
42150
+ case "GET_PARAMETER":
42151
+ case "SET_PARAMETER":
42152
+ send(200, "OK", sessionId ? { Session: sessionId } : {});
42153
+ return;
42143
42154
  case "DESCRIBE": {
42144
42155
  const resolved = this.resolveRouteForRequest(url);
42145
42156
  if (!resolved) {