void onMessage(MessageSocket fn) { throw Exception('To use sockets you need dart:io or dart:html'); }