Class: Lorraine::Client
- Inherits:
-
Object
- Object
- Lorraine::Client
- Defined in:
- lib/lorraine/server.rb
Class Method Summary collapse
Class Method Details
.send_message(message, address = "localhost", port = "1964") ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/lorraine/server.rb', line 30 def self.(, address = "localhost", port = "1964") faye_json = {channel: "/illuminate", data: .packet}.to_json client = HTTPClient.new puts client.post("http://#{address}:#{port}/faye", {message: faye_json}) end |