TGIO / ParseLiveQuery

Very simple and modern implementation, it lacks tests and extra functionality at this moment but i'm working on it.
Apache License 2.0
48 stars 10 forks source link

What is WS_URL and MY_APP_ID? #5

Closed pdkcoder closed 8 years ago

pdkcoder commented 8 years ago

Hi @TGIO I am looking at your sample. As the title said, can you explain me ?

TGIO commented 8 years ago

Hi @thphuc

MY_APP_ID - is an application id. see example

WS_URL - is the url forwebsocket, for example "ws:/" + server_adress + ":4040/"

all clear ?

pdkcoder commented 8 years ago

Hi @TGIO Thanks for your quickly reply. I understand app id, but I still don't get how to setup and get WS_URL. Can you give me instruction?

TGIO commented 8 years ago

it's just web socket url for ur server. for example, u have parse server url "http://myserver.com/parse" Use "ws" instead of "http"or "https" and just add port "4040" for example.

ur WS_URL is now "ws://myserver.com:4040/". But this may vary depending on ur server configuration

pdkcoder commented 8 years ago

My server url is "http://xyz.com:1337/parse". So what is the ws url in my case? Port 4040 is default port? (Also, I am using port 4040 for parse dashboard) If I want to change this port, how should I do?

Thanks!

pdkcoder commented 8 years ago

I got this working so I can close this.