Sha256: ff92ae6e0b0a09a1153cf283f027bcd142c9b5fd44244e31a0444fc700db2e56

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

class MeddlingMessageMiddleware
  # Message middlewares have the following KWargs available to them
  def call(parsed_data:, schema:, socket_event:, listener:, type:, websocket:)
    puts "I get called BEFORE the Handler gets executed"

    puts "But wait! There is no yield, Message Handler never gets called"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack_bot-events-0.4.4 examples/middleware_no_yield/meddling_message_middleware.rb