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-json - Optional. Required only for JSON-related features. If not installed, TEXT-based WebSocket communication and non-JSON HTTP features will still work
- (Optional) If you need JSON functionality, download and install sm-ext-json 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 json library
- Allow JSON library as an optional dependency
- Server will not process data during the hibernation. You can set sv_hibernate_when_empty to 0 to disable hibernation