Comments (12)
@yasserf Nice, thanks!!
from deepstream.io.
Can I use other WebSocket clients for android with deepstream ? like AndroidAsync ? https://github.com/koush/AndroidAsync
from deepstream.io.
The two transport methods currently supported are engine.io and TCP connections.
You could use the engine.io-client-java library to support the engine.io layer. The API should be consistent with the one we are currently using for the browser client. If using websockets directly you would have to add a thin compatability layer ontop to get it to work correctly.
The other alternative is to use the native Java TCP client. This means we could send more messages across with less overhead, a win specially for mobiles! Main benefit of this approach is that we could have a Java library which is wrapped for Android which is a double win.
I haven't done that in a while though so am curious to hear your thoughts!
from deepstream.io.
Thanks yasserf for valuable suggestions, I can't give an advice here, sense I am not an experienced java or android developer, never the less, I will be connecting the pieces to build a proof of concept for our project.
Native Java TCP client will be better for those real time educational apps, teacher will be drawing something and students watch the drawing, such scenario needs more messages for sure..
I think a message each 5 seconds is sufficient for my case, as we will be tracking car drivers via mobiles.
This is my humble thoughts, will it be a good choice for using engine.io-client-java for our case?
I will test will deepstream with engine.io-client-java as soon as I have the time.
from deepstream.io.
hey hopewise,
Proof of concepts are usually a great way to start, if you get blocked feel free to contact me on the slack channel or here. Haven't done Java in a while but it's that language you always run into at some point =P
Regarding the connection type:
Using the http/s protocol is required if in production your server/firewalls only has http/s ports available. That's mainly where engine.io is awesome, since it simulates what a bidirectional tcp connection would look like, except using long-polling or websockets depending on your network configuration / device support.
If you look at the connection class in the javascript client you'll notice it abstracts away the endpoint itself. If you could follow the same design concept it means we could easily switch between tcp and engine.io connections via application configuration and not be restricted to either.
from deepstream.io.
Update: We'll attempt to usine the java sdk (#66) as a base for the android client. If anyone is aware of any issues from using native java (1.7) code in an android app please let me know!
from deepstream.io.
@yasserf could please update gradle for deepstream.io-client-java? because the latest code from last commit not there . Thanks.
from deepstream.io.
should be done, version 0.6!
from deepstream.io.
@yasserf sorry that bothering you, but issue in v.0.6 still exist. Could you pls check again.
from deepstream.io.
hey! Very sorry about that :$, I think their was a commit mixup.
I don't have my dev env setup on this machine, but will do it first thing 2moro morning.
from deepstream.io.
@fair18 should be done now!
from deepstream.io.
Closing as issues can be raised against java repo
from deepstream.io.
Related Issues (20)
- Subscription getting triggered after a delay HOT 1
- [Bug] SocketWrapper mismatch in "handlers/record/record-transitions" when storage enabled HOT 2
- Can't connect to server using protobuf HOT 1
- Tutorial using MQTT? HOT 2
- List updates are not sent as deltas HOT 9
- deepstream triton backend exit error HOT 1
- TypeError: this.services.storage.whenReady is not a function when using mongodb storage
- RPC requests protocol HOT 2
- Cannot start the server release 6.2.1 from the command line (Linux) HOT 4
- Endpoint not found Error for Http Request HOT 1
- Other free alternative HOT 1
- If you send a notif to a user and he is offline, he can't receive this notif when he reconnect. HOT 3
- starting deepstream as daemon fails HOT 4
- Is there a simple way to not receive message send from self? HOT 6
- Is there documented way to remove items from record object with path? HOT 3
- Get invalid state transition message when deleting the record HOT 1
- running deepstream in cluster mode doesn't take in account the port configured. HOT 1
- log metadata on fatal error
- Can I use react-native client to connect to deepstream. HOT 1
- How to distinguish between invalid auth data and service unavailable with deepstream and webhook HOT 7
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 deepstream.io.