Skip to content

ermarkar/Channel-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites :

1) To run this example you have to deploy first.
2) Change line no. 12 and 38 in index.html like

var url = 'http://channel-api-1.appspot.com/createchannel';
to
var url = 'http://your_application_id.appspot.com/createchannel';


RUN :

Then run using 

your_app_id.appspot.com

REGISTER USER:

Provide email to recieve and send messages to other registred user.
By clicking Open Connection button browser will hit a post url with your entered User Id.
On server side a channel token will get created and saved in datastore corresponding to provided user id.


SEND MESSAGE :

Provide registered user id and message to send message.
By clicking Send Message button browser will hit the post request url with user id and message.
On Server side, datastore will be searched to get the token of provided user id and message will be sent to the provided id.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published