lib/websocket/eventmachine/base.rb in websocket-eventmachine-base-1.0.1 vs lib/websocket/eventmachine/base.rb in websocket-eventmachine-base-1.0.2

- old
+ new

@@ -1,12 +1,21 @@ require 'websocket' require 'eventmachine' module WebSocket + + # Duplicate EventMachine constant with silenced warnings. + begin + old_verbose, $VERBOSE = $VERBOSE, nil + EventMachine = ::EventMachine.dup + ensure + $VERBOSE = old_verbose + end + module EventMachine # WebSocket Base for Client and Server (using EventMachine) - class Base < ::EventMachine::Connection + class Base < Connection ########### ### API ### ###########