streamer /ping -> /state

This commit is contained in:
Devaev Maxim 2018-11-07 06:08:05 +03:00
parent a319320152
commit cd24c13199

View File

@ -47,7 +47,7 @@ function Stream() {
// XXX: In current implementation we don't need this event because Stream() has own state poller
var __startPoller = function() {
var http = tools.makeRequest("GET", "/streamer/ping", function() {
var http = tools.makeRequest("GET", "/streamer/state", function() {
if (http.readyState === 4) {
var response = (http.status === 200 ? JSON.parse(http.responseText) : null);