mirror of
https://github.com/Palakis/obs-websocket.git
synced 2025-07-25 11:02:36 +00:00
24 lines
493 B
C++
24 lines
493 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include "WebSocketServer.h"
|
|
|
|
class WebSocketSession;
|
|
typedef std::shared_ptr<WebSocketSession> SessionPtr;
|
|
|
|
namespace WebSocketProtocol {
|
|
const std::vector<uint8_t> SupportedRpcVersions{
|
|
1
|
|
};
|
|
|
|
struct ProcessResult {
|
|
WebSocketServer::WebSocketCloseCode closeCode = WebSocketServer::WebSocketCloseCode::DontClose;
|
|
std::string closeReason;
|
|
json result;
|
|
};
|
|
|
|
ProcessResult ProcessMessage(SessionPtr session, json incomingMessage);
|
|
}
|