25 lines
543 B
Ruby
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
|