upgradesTo static method

List<String> upgradesTo(
  1. String from
)

Implementation

static List<String> upgradesTo(String from) {
  if ('polling' == from) {
    return ['websocket'];
  }
  return [];
}