Method: Faye::Server::Socket#send

Defined in:
lib/faye/protocol/socket.rb

#send(message) ⇒ Object



11
12
13
14
15
# File 'lib/faye/protocol/socket.rb', line 11

def send(message)
  @server.pipe_through_extensions(:outgoing, message, @env) do |piped_message|
    @socket.send(Faye.to_json([piped_message])) if @socket
  end
end