Module: Faye::WebSocket::API

Defined in:
lib/engine2/core.rb

Instance Method Summary collapse

Instance Method Details

#send!(msg) ⇒ Object



163
164
165
166
# File 'lib/engine2/core.rb', line 163

def send! msg
    msg = msg.to_json if msg.is_a? Hash
    send msg
end