Description:
The current WebSocket implementation doesn't support default values for query parameters. We need to add support for default values, similar to how the HTTP module handles default value implementation.
Ideally we should support the below
service /chat on new websocket:Listener(9099) {
// The `userName` query param with default value
resource function get .(string userName = "un") returns websocket:Service {
return new ChatService(userName.toString());
}
}
Description: The current WebSocket implementation doesn't support default values for query parameters. We need to add support for default values, similar to how the HTTP module handles default value implementation.
Ideally we should support the below
Describe your problem(s)
Describe your solution(s)
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):