# File lib/tramp/evented_mysql.rb, line 184 def self.connect opts unless EM.respond_to?(:watch) and Mysql.method_defined?(:socket) raise RuntimeError, 'mysqlplus and EM.watch are required for EventedMysql' end if conn = _connect(opts) EM.watch conn.socket, self, conn, opts else EM.add_timer(5){ connect opts } end end