#ifndef MS_CHANNEL_NOTIFIER_HPP
#define MS_CHANNEL_NOTIFIER_HPP
#include "common.hpp"
#include "Channel/ChannelSocket.hpp"
#include <nlohmann/json.hpp>
#include <string>
namespace Channel
{
class ChannelNotifier
{
public:
static void ClassInit(Channel::ChannelSocket* channel);
static void Emit(const std::string& targetId, const char* event);
static void Emit(const std::string& targetId, const char* event, json& data);
public:
thread_local static Channel::ChannelSocket* channel;
};
}
#endif