Sha256: d7eb4e5b9213c990a4ab4c88ea441e8907bb04b0ae70dd0b5d5c3069e27a9739
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
# Backport A pure Ruby library for event-driven IO. This library is designed with portability as the highest priority, which is why it's written in pure Ruby. Consider [EventMachine](https://github.com/eventmachine/eventmachine) if you need a solution that's faster, more mature, and scalable. ## Installation Install the gem: ``` gem install backport ``` Or add it to your application's Gemfile: ```ruby gem 'backport' ``` ## Usage This example demonstrates a simple echo server. ```ruby require 'backport' module MyAdapter def opening write "Opening the connection" end def closing write "Closing the connection" end def sending data write "Client sent: #{data}" end end Backport.run do Backport.start_tcp_server(adapter: MyAdapter) Backport.start_interval 1 do puts "tick" end end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backport-0.1.0 | README.md |