Closed katopz closed 9 years ago
This trick working all the time! Keeping asking and get answer my own!
Here's what I missing
mMeteor = new Meteor(this, "ws://123.456.789.00/websocket");
This is doc somewhere? Am I only one didn't know this /websocket
? (shame on me)
Cheers!
Don't worry :)
Great that you found the solution yourself. It's actually mentioned in the documentation three times ;)
Granted, it's never said explicitly that you have to append the /websocket
path, but it's shown in the examples. Any idea how we could make this more obvious, though?
@mwaclawek Yes I saw url in doc but it seem like my experiences trick me to skip that because...
http://127.0.0.1:8080/primus
https://radiant-inferno-123.firebaseapp.com/
ws://127.0.0.1:80/faye
mqtt://127.0.0.1:1883
and a lot more
You will see that from my experience I never saw and use /websocket
before, normally it will route to other page or else and I never know that Meteor /websocket
will route to websocket it's just hidden somewhere. And for js version is was like...
ws://localhost:3000/sockjs/055/67slpw9v/websocket
So it's not that obvious to me tho and can be vary. So I try from simple ip and change port and protocol and path later.
In short, No worry! I'm just noob! It's only me that stupid I think.
Any idea how we could make this more obvious, though?
To answer your question here's my noob blog https://medium.com/@katopz/meteor-android-native-1e4ed88ccc16
I mention about this in hint section. :D
Cheers!
Thanks!
Hopefully, others who might have the same problem will find your issue here, then :)
Great tutorial on your Medium blog, by the way!
@katopz would you like to help me to solve my problem, please.. Here's the link https://github.com/delight-im/Android-DDP/issues/47 Thank you
Hi guys,
I'm using present version of Meteor and deploy with
mup
to DigitalOcean Which all working fine with js client. but I got stuck for native Android (device/emulator x86) somehow.Here's my code, some other code is just
Log
for callbackWhen I try to connect, it always throw
WebSockets connection lost
Anyone hit this before? I think I just miss something stupid.uses-permission
is set BTWws:://123.456.789.00
is not working eitherhttp://localhost:3000
is not working but this should be emulator issue.http://192.168.2.133:3000
local IP is no luck too.even worst, sometime it's not call back e.g. after I try
registerAndLogin
or else. I think I'm doom! Any help would be appreciate.Thanks