Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] SignalingChannelImpl の disconenct の返り値を SignalingDisconnectResult? に変更する #157

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

zztkm
Copy link
Contributor

@zztkm zztkm commented Mar 3, 2025

  • [UPDATE] SignalingChannelImpl の disconenct の返り値を SignalingDisconnectResult? に変更する
    • WebSocketListener.onClosed で取得できる code と reason をSignalingDisconnectResult に格納して返すようにした
    • code と reason が取得できない場合は null を返すようにした

@zztkm zztkm requested a review from Copilot March 3, 2025 09:36
@zztkm zztkm self-assigned this Mar 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR updates the behavior of SignalingChannelImpl's disconnect method to return a SignalingDisconnectResult? by capturing code and reason from the WebSocketListener.onClosed callback.

  • Waits up to 5 seconds for the onClosed callback before timing out
  • Returns a SignalingDisconnectResult when code and reason are available, otherwise returns null

Reviewed Changes

File Description
CHANGES.md Updated change log entries to reflect changes in disconnect behavior

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@zztkm
Copy link
Contributor Author

zztkm commented Mar 3, 2025

#156 を develop にマージしたあとにレビューリクエスト予定です

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