engapplabs / flutter_websocket_plugin

Plugin with native integration for WebSocket.
MIT License
33 stars 31 forks source link

Missing strategy to require service with or without background #2

Closed ABuarque closed 4 years ago

ABuarque commented 4 years ago

It'd be interesting if we could invoke this service and saying if we want it to run in background or not.

var url = "wss:'//DNS:PORT/endpoint";
var nativeWebSockerService = NativeWebSocketService.Builder().withURL(url).asBackgroundService().build();

Something like that.