Added better logging and websocket, more readme details
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user