Long polling should always be used instead of streaming. There are no known
cases where streaming would be preferable.
Change-Id: I58ad19cb7bed48430decdaef529a7f3daad19e76
WEBSOCKET("websocket"),
/**
* HTTP streaming
+ *
+ * @deprecated Use the more reliable {@link Transport#LONG_POLLING} instead.
*/
+ @Deprecated
STREAMING("streaming"),
/**
* HTTP long polling
}
/**
- * Returns a Transport by its identifier. Returns null if no value is found
- * for the given identifier.
- *
- * @since 7.3.10
- */
+ * Returns a Transport by its identifier. Returns null if no value is found
+ * for the given identifier.
+ *
+ * @since 7.3.10
+ */
public static Transport getByIdentifier(String identifier) {
for (Transport t : values()) {
if (t.getIdentifier().equals(identifier)) {