10 lines
294 B
Dart
10 lines
294 B
Dart
import 'package:dart_frog/dart_frog.dart';
|
|
import 'package:dart_frog_web_socket/dart_frog_web_socket.dart';
|
|
|
|
Future<Response> onRequest(RequestContext context) async {
|
|
final handler = webSocketHandler((channel, protocol) {
|
|
channel.stream.listen(print);
|
|
});
|
|
return handler(context);
|
|
}
|