Sha256: 808b3a2b5467df318431f4f306b9c3b4612889db89760af9a5c7468edb432068

Contents?: true

Size: 181 Bytes

Versions: 7

Compression:

Stored size: 181 Bytes

Contents

require 'scale_rb'

begin
  ScaleRb::WsClient.start('wss://polkadot-rpc.dwellir.com') do |_client|
    raise 'MyError'
  end
rescue StandardError => e
  p e.message # "MyError"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scale_rb-0.5.1 examples/ws_client_error_handling.rb
scale_rb-0.5.0 examples/ws_client_error_handling.rb
scale_rb-0.4.2 examples/ws_client_error_handling.rb
scale_rb-0.4.1 examples/ws_client_error_handling.rb
scale_rb-0.4.0 examples/ws_client_error_handling.rb
scale_rb-0.3.5 examples/ws_client_error_handling.rb
scale_rb-0.3.4 examples/ws_client_error_handling.rb