Class: ActiveSyncChannel

Inherits:
ActionCable::Channel::Base
  • Object
show all
Defined in:
app/channels/active_sync_channel.rb

Overview

Rails currently doesn’t allow namespacing channels in an engine module ActiveSync

Instance Method Summary collapse

Instance Method Details

#subscribedObject

For providing DashData with data from rails models To change the data sent (like reducing how much is sent) implement broadcast_model in the respective modelc



8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/channels/active_sync_channel.rb', line 8

def subscribed

  if filter && filter[:IsReference]

    subscribe_references

  else

    subscribe_models

  end
end

#unsubscribedObject



21
22
23
# File 'app/channels/active_sync_channel.rb', line 21

def unsubscribed
  # Any cleanup needed when channel is unsubscribed
end