Sha256: 57341a33deb630d35aac35ab58d359dd2d6d46f50def0ccd795dbd0392506bdc

Contents?: true

Size: 359 Bytes

Versions: 11

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module SolanaRuby
  module WebSocketMethods
    # Root Related Web Socket Methods
    module RootMethods
      def on_root_change(&block)
        subscribe("rootSubscribe", [], &block)
      end

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solana-ruby-web3js-2.0.1 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-2.0.0beta2 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-2.0.0beta1 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-2.0.0 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.1.beta4 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.1.beta3 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.1.beta2 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.1.beta1 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.0.beta lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.1 lib/solana_ruby/web_socket_methods/root_methods.rb
solana-ruby-web3js-1.0.0 lib/solana_ruby/web_socket_methods/root_methods.rb