Comments (6)
Add offline database support Add synchronization with remote api
Seem like they'd be ideal!
Thank @humbugz for using this package.
These features will be available from now to June 2022 lately.
For any suggestions to improve this package, feel free to create a PR
Cheer 🚀
from flutter_feathersjs.dart.
Add offline database support Add synchronization with remote api
Seem like they'd be ideal!
These would be incredible features 🚀
If it isn't possible yet: Allow developers to initialize the Rest and Socket config separately (especially the baseUrl) or as the official feathers-client, let the developer decide whether to work only with socket or rest. An example:
I host a Feathers API behind a reverse proxy at https://my-app.com/api - then the socket configuration would still need the https://my-app.com/ because the baseUrl of https://my-app.com/api would imply that the socket.io uses "api" as the namespace. On the other hand, the Rest API would still need the https://my-app.com/api as baseUrl. Therefore this should be configurable separately.
An idea for this could be, to initialize the package in flutter like the feathers package. Therefore to keep the mentality of feathers to be independent of the transportation mode and the package is easily extendable for the Primus Client for example.
A example initialization could be:
Socket.io
import 'package:flutter_feathersjs/flutter_feathersjs.dart';
import 'package:socket_io_client/socket_io_client.dart' as IO;
FlutterFeathersjs client = FlutterFeathersjs();
IO.Socket io = IO.io(baseUrl)
client.configure(FlutterFeathersjs.socket(io));
client.service('messages').create({
text: 'A new message'
});
Rest (With Dio)
import 'package:flutter_feathersjs/flutter_feathersjs.dart';
import 'package:dio/dio.dart';
FlutterFeathersjs client = FlutterFeathersjs();
Dio dio = Dio(BaseOptions(
baseUrl: baseUrl,
headers: extraHeaders
));
client.configure(FlutterFeathersjs.rest(dio));
client.service('messages').create({
text: 'A new message'
});
from flutter_feathersjs.dart.
Add offline database support
Add synchronization with remote api
Seem like they'd be ideal!
from flutter_feathersjs.dart.
Please let me know if you are interested in these features please.
These feature are in active dev and will pushed, but i want to know if you desire really them.
Thank for you interest.
from flutter_feathersjs.dart.
Add offline database support Add synchronization with remote api
Seem like they'd be ideal!These would be incredible features 🚀 If it isn't possible yet: Allow developers to initialize the Rest and Socket config separately (especially the baseUrl) or as the official feathers-client, let the developer decide whether to work only with socket or rest. An example:
I host a Feathers API behind a reverse proxy at https://my-app.com/api - then the socket configuration would still need the https://my-app.com/ because the baseUrl of https://my-app.com/api would imply that the socket.io uses "api" as the namespace. On the other hand, the Rest API would still need the https://my-app.com/api as baseUrl. Therefore this should be configurable separately.
An idea for this could be, to initialize the package in flutter like the feathers package. Therefore to keep the mentality of feathers to be independent of the transportation mode and the package is easily extendable for the Primus Client for example.
A example initialization could be:
Socket.io
import 'package:flutter_feathersjs/flutter_feathersjs.dart'; import 'package:socket_io_client/socket_io_client.dart' as IO; FlutterFeathersjs client = FlutterFeathersjs(); IO.Socket io = IO.io(baseUrl) client.configure(FlutterFeathersjs.socket(io)); client.service('messages').create({ text: 'A new message' });Rest (With Dio)
import 'package:flutter_feathersjs/flutter_feathersjs.dart'; import 'package:dio/dio.dart'; FlutterFeathersjs client = FlutterFeathersjs(); Dio dio = Dio(BaseOptions( baseUrl: baseUrl, headers: extraHeaders )); client.configure(FlutterFeathersjs.rest(dio)); client.service('messages').create({ text: 'A new message' });
🚀
Greate idea
You should notice i create an issue #28 .
I'll add this possibility before finishing the above planned features and create a new release for it.
Thank @dmatuschek
from flutter_feathersjs.dart.
**UPDATE AVAILABLE 🚀 **
Please try the recent pre-release https://pub.dev/packages/flutter_feathersjs/versions/4.1.0-dev
For any discusion about this prelease, please use disccusion under the release. #46
from flutter_feathersjs.dart.
Related Issues (17)
- Any update on an example for implementaton HOT 4
- Web support HOT 3
- Authentication Breaking Due to Casting Error on Future HOT 10
- Allow developers to initialize the Rest and Socket config separately HOT 6
- How do you detect errors with socketio methods? For a call like:
- i need hendel Socket.io events !! HOT 5
- Connection error HOT 5
- Incoming Version 5.0.0
- Other platform supported demo
- I encounter a Late Field initialization error when using Socket-IO HOT 5
- cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null HOT 2
- how return FeatherJsError data in json formate instead of string HOT 1
- Troubleshooting Flutter App Integration with Feathers.js Server
- Make the authenticate method more flexible
- socket queries HOT 2
- soccer io errors on init() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_feathersjs.dart.