diff options
Diffstat (limited to 'zenhttp/include')
| -rw-r--r-- | zenhttp/include/zenhttp/websocketserver.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/zenhttp/include/zenhttp/websocketserver.h b/zenhttp/include/zenhttp/websocketserver.h new file mode 100644 index 000000000..309119d2a --- /dev/null +++ b/zenhttp/include/zenhttp/websocketserver.h @@ -0,0 +1,24 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#include <memory> + +namespace zen { + +struct WebSocketServerOptions +{ + uint16_t Port = 8848; + uint32_t ThreadCount = 1; +}; + +class WebSocketServer +{ +public: + virtual ~WebSocketServer() = default; + + virtual bool Run(const WebSocketServerOptions& Options) = 0; + virtual void Shutdown() = 0; + + static std::unique_ptr<WebSocketServer> Create(); +}; + +} // namespace zen |