class ObjectsFramework::PubSub::Channel
Attributes
sockets[RW]
Public Class Methods
new(channelName)
click to toggle source
# File lib/objectsframework/pubsub.rb, line 52 def initialize(channelName) @channelName = "" @sockets = [] end
Public Instance Methods
send(message)
click to toggle source
# File lib/objectsframework/pubsub.rb, line 58 def send(message) @sockets.each do |socket| socket.send_data message end end