Backend to act as a Swiftiply client (swiftiply.swiftcore.org).
# File lib/thin/backends/swiftiply_client.rb, line 9 def initialize(host, port, options = {}) @host = host @port = port.to_i @key = options[:swiftiply].to_s super() end
Connect the server
# File lib/thin/backends/swiftiply_client.rb, line 17 def connect EventMachine.connect(@host, @port, SwiftiplyConnection, &method(:initialize_connection)) end
Stops the server
# File lib/thin/backends/swiftiply_client.rb, line 22 def disconnect EventMachine.stop end
# File lib/thin/backends/swiftiply_client.rb, line 26 def to_s "#{@host}:#{@port} swiftiply" end