Skip to content

Commit 46597e3

Browse files
gabrieljablonskidarrachequesne
authored andcommitted
docs: add vcpkg installation instructions (#252)
1 parent 23f243f commit 46597e3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

INSTALL.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,17 @@
1111
2. Add `./lib/asio/asio/include`, `./lib/websocketpp` and `./lib/rapidjson/include` to headers search path.
1212
3. Include all files under `./src` in your project, add `sio_client.cpp`,`sio_socket.cpp`,`internal/sio_client_impl.cpp`, `internal/sio_packet.cpp` to source list.
1313
4. Include `sio_client.h` in your client code where you want to use it.
14+
15+
### With vcpkg
16+
17+
You can download and install the Socket.IO C++ client using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
18+
19+
```bash
20+
git clone https://github.com/Microsoft/vcpkg.git
21+
cd vcpkg
22+
./bootstrap-vcpkg.sh
23+
./vcpkg integrate install
24+
vcpkg install socket-io-client
25+
```
26+
27+
The Socket.IO client port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Note: Only the WebSocket transport is currently implemented (no fallback to HTTP
4444

4545
* [With CMAKE](./INSTALL.md#with-cmake)
4646
* [Without CMAKE](./INSTALL.md#without-cmake)
47+
* [With VCPKG](./INSTALL.md#with-vcpkg)
4748
* [iOS and OS X](./INSTALL_IOS.md)
4849
* Option 1: Cocoapods
4950
* Option 2: Create a static library

0 commit comments

Comments
 (0)