From 6b8eae453f6e0a83af42cc8b111aacde10826c28 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Wed, 3 Jan 2024 15:43:48 -0700 Subject: [PATCH] event stream: add rc=1 to query string Signed-off-by: Sumner Evans --- linkedin_messaging/linkedin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/linkedin_messaging/linkedin.py b/linkedin_messaging/linkedin.py index 211b4ba..dc5467d 100644 --- a/linkedin_messaging/linkedin.py +++ b/linkedin_messaging/linkedin.py @@ -534,6 +534,7 @@ async def _listen_to_event_stream(self): async with self.session.get( REALTIME_CONNECT_URL, headers=headers, + params={"rc": "1"}, ) as resp: if resp.status != 200: raise TooManyRequestsError(f"Failed to connect. Status {resp.status}.")