mistserver/src/output/output_json.h
2018-03-20 14:58:58 +01:00

21 lines
442 B
C++

#include "output_http.h"
#include <mist/websocket.h>
namespace Mist {
class OutJSON : public HTTPOutput {
public:
OutJSON(Socket::Connection & conn);
~OutJSON();
static void init(Util::Config * cfg);
void onHTTP();
bool onFinish();
void sendNext();
void sendHeader();
protected:
std::string jsonp;
bool first;
HTTP::Websocket * ws;
};
}
typedef Mist::OutJSON mistOut;