From 52706973917756651b5f99ad98cb06dace61fb7d Mon Sep 17 00:00:00 2001 From: Ismail Akram Date: Thu, 9 May 2024 21:43:10 +0500 Subject: [PATCH] Fix subscribe message class so it inherit from Base --- lib/wampproto/message/subscribed.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wampproto/message/subscribed.rb b/lib/wampproto/message/subscribed.rb index 63e53e0..03b222e 100644 --- a/lib/wampproto/message/subscribed.rb +++ b/lib/wampproto/message/subscribed.rb @@ -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