+ "'. Supported are xhr,websocket,streaming,long-polling");
}
}
protected void enablePush(Transport transport) {
PushConfiguration config = getPushConfiguration();
if (!config.getPushMode().isEnabled()) {
config.setPushMode(PushMode.AUTOMATIC);
}
config.setTransport(transport);
// Ensure no fallback is used
getPushConfiguration().setParameter(
PushConfigurationState.FALLBACK_TRANSPORT_PARAM, "none");
}