Registry / networking / em-proxy

em-proxy

JSON →
library0.1.9rbrubygemsunverified

EventMachine Proxy DSL for building TCP proxies.

gem install em-proxy
INSTALL
IMPORT
SIG · EM-PROXY
E
em-proxy
networkingrubyv0.1.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EM
require 'em-proxy'

Create a simple TCP proxy forwarding to example.com.

require 'em-proxy' EM.run do Proxy.start(host: '0.0.0.0', port: 8080) do |conn| conn.server :backend, host: 'example.com', port: 80 conn.on_data do |data| data end end end
Debug
Known issues
gotchaRequires EventMachine (em) gem.
fix
Add 'eventmachine' to your Gemfile.
affects: >= 0
Upgrade
Version history
0.1.9latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
em-proxy — gem install em-proxy · libregistry