#pragma once #include #include class QWebSocketServer; struct Event { int id; int type; int partyId; qint64 time; qint64 duration; }; class Server : QObject { public: Server(); bool init(quint16 port); private: QWebSocketServer *m_server; QVector m_events; };