Sha256: 736b0b9b37a70b7769c936e5035d00ec3c555fa2edbd06139e2d99a1a6210036

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

require_relative "abort"

module Wamp
  module Manager
    module Event
      # Abort Message Event
      class Goodbye < Abort
        def emit_event(_message)
          reply = Message::Goodbye.new({}, "wamp.close.goodbye_and_out")
          session.transmit(reply.payload)
          super
        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/goodbye.rb
xconn-0.1.1 lib/wamp/manager/event/goodbye.rb
xconn-0.1.0 lib/wamp/manager/event/goodbye.rb