Separate all EventSource lines with CR-LF.

This commit is contained in:
James Coglan
2012-01-11 23:24:05 +00:00
parent a6e556674b
commit b7fd4c63fc
+2 -2
View File
@@ -49,8 +49,8 @@ module Faye
def send(message, options = {})
frame = ""
frame << "event: #{options[:event]}\n" if options[:event]
frame << "id: #{options[:id]}\n" if options[:id]
frame << "event: #{options[:event]}\r\n" if options[:event]
frame << "id: #{options[:id]}\r\n" if options[:id]
frame << "data: #{WebSocket.encode(message)}\r\n\r\n"
@stream.write(frame)
end