Sha256: 26201767c87795d4e6c7b80cdef4b13a8b5b0e34bd5d72a191d15f3ed4f6a05c
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require_relative "base" module Wamp module Manager module Event # Welcome Message Event class Error < Base def emit_event_name "request_#{request_id}" end def emit_event(message) session.emit(emit_event_name, nil, message) begin raise message.error if message.error rescue StandardError => e puts "Error: #{e.message}" end end def error? true end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | lib/wamp/manager/event/error.rb |
xconn-0.1.1 | lib/wamp/manager/event/error.rb |
xconn-0.1.0 | lib/wamp/manager/event/error.rb |