delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Set Up server and Connect To Localhost #41

Closed isdzulqor closed 8 years ago

isdzulqor commented 8 years ago

how to sett up server for this library, I made an android native app with this library and I use meteor for my web service. I dont remove insecure package and autopublish package. so I can Insert, delete and update without subscribe or call the method in client. but my problem is I can not connect to my localhost. I use genymotion for the android emulator. Any one can Help me, please,,, Thank you for this amazing library It's my first time work with Web Socket,, here is my code https://ideone.com/pXzJW8

isdzulqor commented 8 years ago

[SOLVED] I change my Server Uri in my native java Before ws://192.168.56.1:3000 to be like this ws://192.168.56.1:3000/websocket

ocram commented 8 years ago

Thanks!

Actually, the connection URL is documented like that, with the /websocket suffix, isn't it?

Do you feel any part of the documentation is unclear or should be improved?