Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We don't want to send the bloody frame twice.

  • Loading branch information...
commit 1ae699ed4c73658fe91f12a7788705e0dfd79abd 1 parent 14dfc72
@botanicus botanicus authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/sockjs/session.rb
View
7 lib/sockjs/session.rb
@@ -336,6 +336,13 @@ def send(*messages)
self.buffer.push(*messages)
end
+ def run_user_app(response)
+ puts "~ Executing user's SockJS app"
+ frame = self.process_buffer(false)
+ # self.send_data(frame) if frame and not frame.match(/^c\[\d+,/)
+ puts "~ User's SockJS app finished"
+ end
+
def send_data(frame)
super(frame)
Please sign in to comment.
Something went wrong with that request. Please try again.