rf-web/vendor/bundle/gems/em-websocket-0.5.1/lib/em-websocket.rb
2019-10-21 10:18:17 +02:00

25 lines
543 B
Ruby

$:.unshift(File.dirname(__FILE__) + '/../lib')
require "eventmachine"
%w[
debugger websocket connection
handshake
handshake75 handshake76 handshake04
framing76 framing03 framing04 framing05 framing07
close75 close03 close05 close06
masking04
message_processor_03 message_processor_06
handler handler75 handler76 handler03 handler05 handler06 handler07 handler08 handler13
].each do |file|
require "em-websocket/#{file}"
end
unless ''.respond_to?(:getbyte)
class String
def getbyte(i)
self[i]
end
end
end