Older/Server/WebRTC/SignalServer.h
amass 7554691cfd
All checks were successful
Deploy / Build (push) Successful in 6m7s
remove some code.
2025-01-10 21:49:22 +08:00

22 lines
520 B
C++

#ifndef __SIGNALSERVER_H__
#define __SIGNALSERVER_H__
#include "Singleton.h"
#include <string>
#include <unordered_map>
class WebSocketSignalSession;
class Application;
class SignalServer {
public:
SignalServer(Application &app);
void join(const std::string &id, WebSocketSignalSession *client);
void leave(const std::string &id);
WebSocketSignalSession *client(const std::string &id);
private:
std::unordered_map<std::string, WebSocketSignalSession *> m_clients;
};
#endif // __SIGNALSERVER_H__