dsb_server 0.1.3 copy "dsb_server: ^0.1.3" to clipboard
dsb_server: ^0.1.3 copied to clipboard

This package allows you to trivially create a DSB/DSBMobile server.

example/main.dart

import 'dart:io';

import 'package:dsb_server/dsb_server.dart';
import 'package:shelf/shelf_io.dart';

void main() => serve(
      dsbHandler(
          generateAuthid: (_, __, ___, ____, _____) async => '000-000',
          getContent: (path, authid) async => path),
      InternetAddress.loopbackIPv6,
      0,
    ).then((server) => print(server.port));
0
likes
160
pub points
0%
popularity

Publisher

verified publisherampless.chrissx.de

This package allows you to trivially create a DSB/DSBMobile server.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

intl, shelf

More

Packages that depend on dsb_server