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

can't distinguishing connection's close code #1040

Open
AI-LIFENG opened this issue Nov 10, 2023 · 1 comment
Open

can't distinguishing connection's close code #1040

AI-LIFENG opened this issue Nov 10, 2023 · 1 comment

Comments

@AI-LIFENG
Copy link

AI-LIFENG commented Nov 10, 2023

Hello, folks! I'm facing an issue while using cboden/ratchet v0.4.4.

I'm having trouble distinguishing between

var conn = new WebSocket('ws://localhost:8088');
conn.close(4100, 'Abnormal closure')

and

conn.close(3100, 'whatelse') 

within the onClose(ConnectionInterface $conn) method.

Thanks

@AI-LIFENG AI-LIFENG changed the title can't distinguishing conn.close_code can't distinguishing connection‘s close code Nov 14, 2023
@AI-LIFENG AI-LIFENG changed the title can't distinguishing connection‘s close code can't distinguishing connection's close code Nov 14, 2023
@AI-LIFENG
Copy link
Author

I checked the source code at GitHub link. I want to access this $code variable.

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

No branches or pull requests

1 participant