dsb_server 0.0.2 dsb_server: ^0.0.2 copied to clipboard
This package allows you to trivially create a DSB/DSBMobile server.
import 'dart:io';
import 'package:dsb_server/dsb_server.dart';
import 'package:shelf/shelf_io.dart';
void main() => serve(
dsbHandler(
generateAuthid: (_, __, ___, ____, _____) => '000-000',
getContent: (path, authid) => path),
InternetAddress.loopbackIPv6,
0,
).then((server) => print(server.port));