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