put debug back into websocket

This commit is contained in:
maxwell 2010-06-22 16:23:15 -07:00
parent 56e940131f
commit aa7a2da3d1
3 changed files with 3 additions and 4 deletions

View file

@ -4,8 +4,7 @@
%b shared a link
%br
= post.title
/- (foo = post.link.to_s)
/- (bar = post.link)
%a{:href => "#{post.link}"}
= post.link
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", bookmark_path(post)

View file

@ -19,7 +19,7 @@
WebSocket.__swfLocation = "/javascripts/WebSocketMain.swf";
= javascript_include_tag 'socket' if user_signed_in?
= javascript_include_tag 'socket' if user_signed_in?
= csrf_meta_tag
= yield(:head)

View file

@ -15,7 +15,7 @@ module WebSocket
end
end
EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080) do |ws|
EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080, :debug => true) do |ws|
ws.onopen {
sid = @channel.subscribe { |msg| ws.send msg }