Module: SolanaRuby::WebSocketMethods::RootMethods

Included in:
SolanaRuby::WebSocketClient
Defined in:
lib/solana_ruby/web_socket_methods/root_methods.rb

Overview

Root Related Web Socket Methods

Instance Method Summary collapse

Instance Method Details

#on_root_change(&block) ⇒ Object



7
8
9
# File 'lib/solana_ruby/web_socket_methods/root_methods.rb', line 7

def on_root_change(&block)
  subscribe("rootSubscribe", [], &block)
end

#remove_root_listener(subscription_id) ⇒ Object



11
12
13
# File 'lib/solana_ruby/web_socket_methods/root_methods.rb', line 11

def remove_root_listener(subscription_id)
  unsubscribe("rootUnsubscribe", subscription_id)
end