news-ai / tabulae

API for media list management
https://tabulae.newsai.org/
0 stars 0 forks source link

test new notification endpoints! #134

Closed AbhiAgarwal closed 7 years ago

AbhiAgarwal commented 7 years ago

to get token

/users/me/token

then

https://cloud.google.com/appengine/docs/go/channel/javascript

this is exciting

<script type="text/javascript" src="https://tabulae.newsai.org/_ah/channel/jsapi"></script>
AbhiAgarwal commented 7 years ago
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <link rel="stylesheet" href="">
</head>
<body>

</body>
<script type="text/javascript" src="https://tabulae.newsai.org/_ah/channel/jsapi"></script>
<script type="text/javascript" charset="utf-8" async defer>
    function log(argument) {
        console.log(argument);
    }
    var token = "";
    channel = new goog.appengine.Channel(token);
    socket = channel.open();
    socket.onopen = log;
    socket.onmessage = log;
    socket.onerror = log;
    socket.onclose = log;
</script>
</html>