Base: Add WebSocketProtocol

Will be used to handle incoming websocket messages. Initially I was
going to handle messages within WebSocketServer, but the file is
starting to get very large and so it's only fair to split it up.
This commit is contained in:
tt2468 2021-04-29 10:52:29 -07:00
parent 44c5683ec4
commit ad8b13606f
4 changed files with 8 additions and 1 deletions

View File

@ -72,6 +72,7 @@ set(obs-websocket_SOURCES
src/obs-websocket.cpp
src/Config.cpp
src/WebSocketServer.cpp
src/WebSocketProtocol.cpp
src/WebSocketSession.cpp
src/requesthandler/RequestHandler.cpp
src/requesthandler/rpc/Request.cpp
@ -85,6 +86,7 @@ set(obs-websocket_HEADERS
src/obs-websocket.h
src/Config.h
src/WebSocketServer.h
src/WebSocketProtocol.h
src/WebSocketSession.h
src/requesthandler/RequestHandler.h
src/requesthandler/rpc/Request.h

View File

@ -0,0 +1 @@
#include "WebSocketProtocol.h"

4
src/WebSocketProtocol.h Normal file
View File

@ -0,0 +1,4 @@
#pragma once
#include "WebSocketSession.h"
#include "requesthandler/RequestHandler.h"

View File

@ -5,9 +5,9 @@
#include <QTime>
#include "WebSocketServer.h"
#include "WebSocketProtocol.h"
#include "obs-websocket.h"
#include "Config.h"
#include "requesthandler/RequestHandler.h"
#include "utils/Utils.h"
#include "plugin-macros.generated.h"