media.keepaliveChannel - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.keepaliveChannel

API ์„ค๋ช…

  • Channel ์—ฐ๊ฒฐ ์œ ์ง€ API
  • media.createChannel ์—์„œ ์ƒ์„ฑํ•œ Channel ์—ฐ๊ฒฐ์„ ์œ ์ง€ํ•จ
  • ์„ค์ •ํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ 70์ดˆ ํ›„ ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•จ

API ๊ตฌ์กฐ

  • function keepaliveChannel(options,callback)
  • options
    • null
  • result_cd
    • 200: ์„ฑ๊ณต
    • 500: ์‹œ์Šคํ…œ Error
  • extra
    • null

์‚ฌ์šฉ ์˜ˆ์‹œ

// callback ๋ฐฉ์‹
var ticker = 0;
setInterval(function () {
    ticker++;
    if (ticker % 30 === 7) {
        console.log('keepalive:' + ticker);
        gigagenie.media.keepaliveChannel(null, function (result_cd, result_msg, extra) {
            console.log("keepaliveChannel");
        });
    }
}, 1000);