akarin

0.0.0 • Public • Published

akarin

receive server sent event from url

example

mastodon

var akarin = require('akarin');

var sse = akarin.sse({
    protocol: 'https:', 
    hostname: 'streaming.mstdn.jp', 
    path: '/api/v1/streaming/user', 
    headers: {
        'Authorization': 'Bearer ****************************************************************'
    }
});
sse.on('update', function (data) {
    console.log(data);
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i akarin

    Weekly Downloads

    1

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • pizyumi