Is this a support request?
No.
Describe the bug
I'm receiving an error when upgrading to version 6.2.2 of the launchdarkly-node-server-sdk library.
Error Message: The \"listener\" argument must be of type function. Received an instance of Object
TypeError [ERR_INVALID_ARG_TYPE]: The \"listener\" argument must be of type function. Received an instance of Object
The stack trace references these files:
at connect (/node_modules/launchdarkly-eventsource/lib/eventsource.js:290:11)
at new EventSource (/node_modules/launchdarkly-eventsource/lib/eventsource.js:314:4)
at Object.StreamProcessor.processor.start (/node_modules/launchdarkly-node-server-sdk/streaming.js:65:10)
at Object.newClient [as init] (/node_modules/launchdarkly-node-server-sdk/index.js:138:19)
To reproduce
Use version 6.2.2 of launchdarkly-node-server-sdk.
const client = await LaunchDarkly.init(process.env.LAUNCH_DARKLY_API_KEY);
Expected behavior
I would expect a minimum version to not introduce breaking changes and that this would not blow up. 6.2.1 worked fine.
Logs
See Description
SDK version
6.2.2
Language version, developer tools
Node v14.18.2
OS/platform
Docker container node:14.18-bullseye
Additional context
Add any other context about the problem here.