Skip to content

Commit

Permalink
Merge pull request #32 from xconnio/fix1
Browse files Browse the repository at this point in the history
Fix subscribe message class so it inherit from Base
  • Loading branch information
rubyonrails3 authored May 9, 2024
2 parents 6693d7a + 5270697 commit 041171c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wampproto/message/subscribed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
module Wampproto
module Message
# abort message
class Subscribed
class Subscribed < Base
attr_reader :request_id, :subscription_id

def initialize(request_id, subscription_id)
super()
@request_id = Validate.int!("Request Id", request_id)
@subscription_id = Validate.int!("Subscription Id", subscription_id)
end
Expand Down

0 comments on commit 041171c

Please sign in to comment.