Sha256: 51afbeaaeb3022390b2ad61023933f51f3556d5e21769a1e9590cea3fef45407
Contents?: true
Size: 696 Bytes
Versions: 93
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true module ActionCable module SubscriptionAdapter class Base attr_reader :logger, :server def initialize(server) @server = server @logger = @server.logger end def broadcast(channel, payload) raise NotImplementedError end def subscribe(channel, message_callback, success_callback = nil) raise NotImplementedError end def unsubscribe(channel, message_callback) raise NotImplementedError end def shutdown raise NotImplementedError end def identifier @server.config.cable[:id] ||= "ActionCable-PID-#{$$}" end end end end
Version data entries
93 entries across 88 versions & 8 rubygems