class ActionFramework::RealtimeMessage
Public Class Methods
new(socket)
click to toggle source
# File lib/actionframework/realtime_message.rb, line 5 def initialize(socket) @sock = socket end
Public Instance Methods
post(identifier,payload)
click to toggle source
# File lib/actionframework/realtime_message.rb, line 9 def post identifier,payload @sock.puts({:identifier => identifier,:payload => payload}.to_json) end