Ushieru
Ushieru
@Mastersam07 Yes, you can. ```dart // routes/index.dart import 'dart:io'; import 'package:dart_frog/dart_frog.dart'; import 'package:path/path.dart' as path; Response onRequest(RequestContext context) { final file = File(path.join(Directory.current.path, 'public', 'index.html')); if (!file.existsSync()) { return Response(body:...
You can add web sockets with [shelf_web_socket](https://pub.dev/packages/shelf_web_socket) package. Dart frog have a fromShelfHandler wrapper. ws example: ```dart // routes/ws.dart import 'dart:async'; import 'package:dart_frog/dart_frog.dart'; import 'package:shelf_web_socket/shelf_web_socket.dart' as ws; FutureOr onRequest(RequestContext context)...
If possible i would like to add this feature. :D
@SPiercer You can create a custom entrypoint, simply create a main.dart file at the root of your Dart Frog project. The main.dart file must expose a top-level run method. [Official...