-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Close Frame Record
return type support
#1497
base: main
Are you sure you want to change the base?
Conversation
* Update chat_application test results on Tue Feb 11 18:29:43 UTC 2025 * Update chat_application test results on Wed Feb 12 18:30:42 UTC 2025 --------- Co-authored-by: ballerina-bot <[email protected]> Co-authored-by: ballerina-bot <[email protected]>
Sync the fork
Sync the fork
native/src/main/java/io/ballerina/stdlib/websocket/WebSocketResourceDispatcher.java
Outdated
Show resolved
Hide resolved
Sync the fork
String objectType = ((BObject) bMap.get(WebSocketConstants.CLOSE_FRAME_TYPE)) | ||
.getOriginalType().toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR we have a runtime API called TypeUtils.getType
to get the type of a BObject
. Shall we use that here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 0e8859267df837dafff72e5e4d6a85d36183b38a
|
Purpose
Resolves Add support for websocket close frame
Examples
1. Close the connection using
NormalClosure
2. Close the connection using
CustomCloseFrame
Checklist