Permalink
Browse files

Advertise that the RackAdapter supports cross-origin-long-polling.

  • Loading branch information...
1 parent d9ade36 commit b758663cd1cf3491b61f4d6cf3b82c0dbb287f59 @jcoglan jcoglan committed Mar 27, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/faye.rb
  2. +5 −5 spec/ruby/server_spec.rb
View
@@ -12,7 +12,7 @@ module Faye
BAYEUX_VERSION = '1.0'
ID_LENGTH = 128
JSONP_CALLBACK = 'jsonpcallback'
- CONNECTION_TYPES = %w[long-polling callback-polling websocket]
+ CONNECTION_TYPES = %w[long-polling cross-origin-long-polling callback-polling websocket]
MANDATORY_CONNECTION_TYPES = %w[long-polling callback-polling in-process]
View
@@ -28,7 +28,7 @@
"channel" => "/meta/handshake",
"successful" => true,
"version" => "1.0",
- "supportedConnectionTypes" => ["long-polling","callback-polling","websocket"],
+ "supportedConnectionTypes" => ["long-polling","cross-origin-long-polling","callback-polling","websocket"],
"clientId" => "clientid"
}
end
@@ -44,7 +44,7 @@
"channel" => "/meta/handshake",
"successful" => true,
"version" => "1.0",
- "supportedConnectionTypes" => ["long-polling","callback-polling","websocket"],
+ "supportedConnectionTypes" => ["long-polling","cross-origin-long-polling","callback-polling","websocket"],
"clientId" => "clientid",
"id" => "foo"
}
@@ -68,7 +68,7 @@
"successful" => false,
"error" => "402:version:Missing required parameter",
"version" => "1.0",
- "supportedConnectionTypes" => ["long-polling","callback-polling","websocket"]
+ "supportedConnectionTypes" => ["long-polling","cross-origin-long-polling","callback-polling","websocket"]
}
end
end
@@ -89,7 +89,7 @@
"successful" => false,
"error" => "402:supportedConnectionTypes:Missing required parameter",
"version" => "1.0",
- "supportedConnectionTypes" => ["long-polling","callback-polling","websocket"]
+ "supportedConnectionTypes" => ["long-polling","cross-origin-long-polling","callback-polling","websocket"]
}
end
end
@@ -122,7 +122,7 @@
"successful" => false,
"error" => "301:iframe,flash:Connection types not supported",
"version" => "1.0",
- "supportedConnectionTypes" => ["long-polling","callback-polling","websocket"]
+ "supportedConnectionTypes" => ["long-polling","cross-origin-long-polling","callback-polling","websocket"]
}
end
end

0 comments on commit b758663

Please sign in to comment.