Sha256: cb85121448cf784944bdc0d85001fa0a039db7f71a1a670ec26b8213577c4b87

Contents?: true

Size: 1.26 KB

Versions: 11

Compression:

Stored size: 1.26 KB

Contents

##
## Evented Mode
##
#
# Require this file if you wish to run your server and/or client RPC
# with the evented handlers via EventMachine.
#
# To run with rpc_server specify the switch `evented`:
#
#   rpc_server --evented myapp.rb
#
# To run for client-side only override the require in your Gemfile:
#
#   gem 'protobuf', :require => 'protobuf/evented'
#
$stderr.puts <<-WARN
  [DEPRECATED] You are using the evented connector and/or server which has been deprecated.
               Versions >= 3.0 will no longer provide the evented module for clients
               and servers. You should upgrade to the socket or zmq transport configurations.

               To upgrade your rpc_server, simply replace `--evented` option
               with `--socket` or `--zmq`. If you are using the `PB_CLIENT_TYPE`
               env variable, simply assign it to socket or zmq.

               If you are requiring the gem in your gemfile expclitly, change
               the require to match your chosen transport type:

                  `gem 'protobuf', :require => 'protobuf/socket'`
WARN

require 'protobuf'
Protobuf.connector_type = :evented

require 'eventmachine'
require 'protobuf/ext/eventmachine'
require 'protobuf/rpc/servers/evented/server'
require 'protobuf/rpc/connectors/eventmachine'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
protobuf-2.8.13 lib/protobuf/evented.rb
protobuf-2.8.12 lib/protobuf/evented.rb
protobuf-2.8.11 lib/protobuf/evented.rb
protobuf-2.8.10 lib/protobuf/evented.rb
protobuf-2.8.9 lib/protobuf/evented.rb
protobuf-2.8.8 lib/protobuf/evented.rb
protobuf-2.8.7 lib/protobuf/evented.rb
protobuf-2.8.6 lib/protobuf/evented.rb
protobuf-2.8.5 lib/protobuf/evented.rb
protobuf-2.8.4 lib/protobuf/evented.rb
protobuf-2.8.3 lib/protobuf/evented.rb