em-websocket icon indicating copy to clipboard operation
em-websocket copied to clipboard

jruby 1.6.7 with $KCODE='u'

Open jiangjianxiao opened this issue 13 years ago • 2 comments
trafficstars

$KCODE='u'
require 'rubygems'
require 'em-websocket'

SyntaxError: (RegexpError) 134217727: /\A\x00[^\xff]*\xff/
  require at org/jruby/RubyKernel.java:1033
  require at c:/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
   (root) at c:/jruby/lib/ruby/gems/1.8/gems/em-websocket-0.3.6/lib/../lib/em-websocket/framing76.rb
:14
     each at org/jruby/RubyArray.java:1615
   (root) at c:/jruby/lib/ruby/gems/1.8/gems/em-websocket-0.3.6/lib/em-websocket.rb:6
  require at org/jruby/RubyKernel.java:1033
  require at c:/jruby/lib/ruby/gems/1.8/gems/em-websocket-0.3.6/lib/em-websocket.rb:59
   (root) at em_websocket_test.rb:3

jiangjianxiao avatar Mar 16 '12 05:03 jiangjianxiao

@mloughran have you ever tried em-websocket on JRuby?

JRuby was never a hard requirement for em-websocket, but if we can make it work.. that'd be great!

igrigorik avatar Mar 17 '12 00:03 igrigorik

I haven't I'm afraid, but agree it would be great to support. Unfortunately I haven't got any time to take this on myself right now...

mloughran avatar Apr 19 '12 21:04 mloughran