12 lines
293 B
Dart
12 lines
293 B
Dart
import 'dart:html';
|
|
import 'package:angel_websocket/browser.dart';
|
|
|
|
/// Dummy app to ensure client works with DDC.
|
|
void main() {
|
|
var app = WebSockets(window.location.origin);
|
|
window.alert(app.baseUrl.toString());
|
|
|
|
app.connect().catchError((_) {
|
|
window.alert('no websocket');
|
|
});
|
|
}
|