This is a SourceMod extension that provides some methods for HTTP JSON and websocket communication
- Relies on IXWebSocket which is C++ library for WebSocket client and server development. It has minimal dependencies
- Support TEXT and JSON data
- Support client and server
- Support permessage-deflate
- Support SSL
- Support x64
- Support HTTP RESTful API with JSON and form data
- sm-ext-yyjson - Required for JSON parsing and generation
- Download and install sm-ext-yyjson first
- Download this extension from sm-ext-websocket
- Extract the files to your SourceMod directory
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install clang g++-multilib zlib1g-dev zlib1g-dev:i386 libssl-dev libssl-dev:i386
clone project
mkdir build && cd build
python ../configure.py --enable-optimize --symbol-files --sm-path=YOU_SOURCEMOD_PATH --targets=x86,x64
ambuild- WebSocket server support
- Windows support
- HTTP support
- Use sourcemod extension interface for JSON functionality instead of bundling yyjson library
- Server will not process data during the hibernation. You can set sv_hibernate_when_empty to 0 to disable hibernation