Skip to content

Commit

Permalink
Merge pull request #124 from codekitchen/patch-1
Browse files Browse the repository at this point in the history
fix code order issue in overview.md chat example
  • Loading branch information
noteflakes authored Jan 10, 2024
2 parents dc5bb6f + 50d521b commit 6e8d34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def chat_user_handler(user_name, connection)
while command = connection.gets
case command
when /^connect (.+)/
room&.send [:subscribe, message_subscriber]
room = CHAT_ROOMS[$1]
room&.send [:subscribe, message_subscriber]
when "disconnect"
room&.send [:unsubscribe, message_subscriber]
room = nil
Expand Down

0 comments on commit 6e8d34b

Please sign in to comment.