tubesock
tubesock copied to clipboard
Messages duplicated in Chat demo in JRuby
I run the Chat demo with Puma (2.7.1), Rails (4.1.0.beta1), JRuby (1.7.9). Whenever I entered a message in the input field, this message got duplicated in the output of all clients.
Attached please find screenshots of Chrome, IE, and Firefox. Easily to know that Firefox was joined later in the conversation.
Is there any difference at all between your folder and the example? I would expect the Gemfile.lock to be a little different because of jruby. Anything else?
Apart from using Rails 4.1.0.beta1, I just copied your code over. The content of my Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.0.beta1)
actionpack (= 4.1.0.beta1)
actionview (= 4.1.0.beta1)
mail (~> 2.5.4)
actionpack (4.1.0.beta1)
actionview (= 4.1.0.beta1)
activesupport (= 4.1.0.beta1)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.0.beta1)
activesupport (= 4.1.0.beta1)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.0.beta1)
activesupport (= 4.1.0.beta1)
builder (~> 3.1)
activerecord (4.1.0.beta1)
activemodel (= 4.1.0.beta1)
activesupport (= 4.1.0.beta1)
arel (~> 5.0.0)
activesupport (4.1.0.beta1)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
after_do (0.2.3)
arel (5.0.0)
atomic (1.1.14-java)
awesome_print (1.2.0)
better_errors (1.1.0)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
builder (3.2.2)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
colorize (0.6.0)
erubis (2.7.0)
execjs (2.0.2)
ffi (1.9.3-java)
hike (1.2.3)
i18n (0.6.9)
jbuilder (2.0.2)
activesupport (>= 3.0.0)
multi_json (>= 1.2.0)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-rails-cdn (1.0.1)
jquery-rails
json (1.8.1-java)
letters (0.4.1)
activesupport
awesome_print
colorize
xml-simple
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25.1)
minitest (5.2.1)
multi_json (1.8.4)
polyglot (0.3.3)
pry (0.9.12.4-java)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
spoon (~> 0.0)
pry-rails (0.3.2)
pry (>= 0.9.10)
puma (2.7.1-java)
rack (>= 1.1, < 2.0)
quiet_assets (1.0.2)
railties (>= 3.1, < 5.0)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.0.beta1)
actionmailer (= 4.1.0.beta1)
actionpack (= 4.1.0.beta1)
actionview (= 4.1.0.beta1)
activemodel (= 4.1.0.beta1)
activerecord (= 4.1.0.beta1)
activesupport (= 4.1.0.beta1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.0.beta1)
sprockets-rails (~> 2.0.0)
railties (4.1.0.beta1)
actionpack (= 4.1.0.beta1)
activesupport (= 4.1.0.beta1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.1)
redis (3.0.6)
slop (3.4.7)
spoon (0.0.4)
ffi
sprockets (2.10.1)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
thor (0.18.1)
thread_safe (0.1.3-java)
atomic
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
try_to (1.0)
tubesock (0.2.2)
rack (>= 1.5.0)
websocket (>= 1.1.0)
turbolinks (2.2.0)
coffee-rails
tzinfo (1.1.0)
thread_safe (~> 0.1)
websocket (1.1.2)
xml-simple (1.1.3)
PLATFORMS
java
DEPENDENCIES
after_do
better_errors
jbuilder
jquery-rails-cdn
letters
pry-rails
puma
quiet_assets
rails (= 4.1.0.beta1)
redis
try_to
tubesock
turbolinks