Sha256: e081f76ce77fbca36f05f052d233adfca163611782e59f8a3a56cf10a49eb3e8

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Wamp
  module Manager
    module Event
      # Abort Message Event
      class Abort < Base
        def emit_event_name
          :close
        end

        def emit_event(message)
          session.emit(emit_event_name, message)
          session.close(1000, message.reason)
        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/abort.rb
xconn-0.1.1 lib/wamp/manager/event/abort.rb
xconn-0.1.0 lib/wamp/manager/event/abort.rb