Skip to content

Allow configuring websocket connect options#74

Open
kevinskysunny wants to merge 1 commit intoopen-dingtalk:mainfrom
kevinskysunny:codex/configurable-websocket-timeouts
Open

Allow configuring websocket connect options#74
kevinskysunny wants to merge 1 commit intoopen-dingtalk:mainfrom
kevinskysunny:codex/configurable-websocket-timeouts

Conversation

@kevinskysunny
Copy link
Copy Markdown

Summary

  • Add a backwards-compatible websocket_connect_options argument to DingTalkStreamClient.
  • Pass those options through to websockets.connect().

Why

Some production environments need to tune WebSocket open and keepalive timeouts for DingTalk Stream connections. The current SDK hardcodes the default websockets.connect() behavior, so callers cannot adjust open_timeout, ping_interval, ping_timeout, proxy behavior, or other supported options without patching the SDK locally.

Validation

  • Ran python3 -m py_compile dingtalk_stream/stream.py.
  • Verified the change is backwards compatible because the default options dict is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant