Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nipuna Ransinghe  <nipunaranasinghe93@gmail.com>
  • Loading branch information
MohamedSabthar and NipunaRanasinghe authored Oct 1, 2024
1 parent f4ac987 commit 73a88d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ service /chat on new websocket:Listener(9090) {

// The `userName` parameter in the resource method is treated as a query parameter,
// which is extracted from the request URI. For example, invoking this service with
// the URI `ws://localhost:9090/chat?userName=xyz` passes `xyz` as the value
// the URI `ws://localhost:9090/chat?userName=John` passes `John` as the value
// to the `userName` parameter defined in the resource method.
resource function get .(string userName) returns websocket:Service {
return new ChatService(userName);
Expand Down

0 comments on commit 73a88d1

Please sign in to comment.