Added better logging and websocket, more readme details

This commit is contained in:
2025-02-05 22:41:08 -07:00
parent 76ea825509
commit fdc49bcb8d
8 changed files with 156 additions and 66 deletions
+9
View File
@@ -0,0 +1,9 @@
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);
}