realbadidas
da779141a7
docs: added missing ./ ( #428 )
2024-07-17 08:22:28 +02:00
Uilian Ries
57054e13c8
build: Flexibilize CMake version and add Conan steps in docs ( #427 )
...
* Allow newer Cmake versions
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* comsume only asio cmake target
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* Add Conan support in docs
Signed-off-by: Uilian Ries <uilianries@gmail.com>
---------
Signed-off-by: Uilian Ries <uilianries@gmail.com>
2024-06-03 13:05:54 +02:00
Benson Muite
6dead4f0a8
build: Remove binary sio_test ( #425 )
...
Add sio_test to gitignore
Remove executable permissions from text files
2024-05-29 19:54:42 +02:00
Uilian Ries
373a01c989
build: Allow using new C++ standards when building ( #426 )
...
* Require C++11 as minimal standard
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* Link to thread when needed
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* public thread target
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* Fix typo with target_compile_features
---------
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
2024-05-29 17:59:10 +02:00
Ruslan Baratov
c6be96b226
build: GNUInstallDirs should be included before usage of CMAKE_INSTALL_INCLUDEDIR ( #424 )
2024-04-05 22:50:12 +02:00
Črtomir Drofenik
2eb7784a92
core: Add std to all move references ( #420 )
2024-02-14 19:48:21 +01:00
Patrick Turley
0dc2f7afea
docs: small semantic correction to API.md ( #412 )
2023-11-10 22:36:26 +01:00
Nukoooo
2c3f49a18e
core: add on_any ( #402 )
...
* Add on_any
* Update style in sio_socket.cpp
To keep the style. "ifs" with element can be put in one line if they fit. Otherwise they should use the bracket style.
---------
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
2023-11-09 00:06:49 +01:00
Nguyen Xuan Huong
ee6e4233b2
core: Sync session id with server ( #410 )
...
* Sync session id with server
* Update sio_client_impl.cpp
Use `std::` when required.
Even though there is a `using namespace std` this should be removed and we should add `std::` whenever possible
---------
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
2023-11-08 23:53:31 +01:00
Patrick Turley
122432431e
docs: fix a small misspelling in API.md ( #411 )
2023-11-08 23:29:00 +01:00
Joan Marcè i Igual
676adfb805
build: Bump CMake version ( #406 )
2023-09-22 11:12:51 +02:00
Joan Marcè i Igual
6308d090e8
core: fix logging macro not used in sio_socket.cpp ( #401 )
2023-07-11 13:02:03 +02:00
Joan Marcè i Igual
75e058980b
feat: allow disabling the logging of the library ( #399 )
2023-06-26 16:05:16 +02:00
Joan Marcè i Igual
9d55f6e10e
build(deps): update catch2 from 1.10.0 to v3.3.2 ( #400 )
...
* build(deps): update catch2 from 1.10.0 to v3.3.2
* Use new catch version
* Fix test
* Remove catch submodule
2023-06-26 15:55:19 +02:00
Michael Scofield
9066882fa1
feat: allow for custom io_service ( #390 ) ( #391 )
...
* feat: allow for custom io_service (#390 )
* Keep default constructor
---------
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
2023-06-26 12:28:22 +02:00
Joan Marcè i Igual
b10474e3ea
docs: Remove Boost from Qt example ( #387 )
2023-02-13 17:38:21 +01:00
dependabot[bot]
3e01111ddf
build(deps): bump socket.io-parser in /test/echo_server ( #377 )
...
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser ) from 4.0.3 to 4.0.5.
- [Release notes](https://github.com/socketio/socket.io-parser/releases )
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md )
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.0.3...4.0.5 )
---
updated-dependencies:
- dependency-name: socket.io-parser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 13:48:04 +01:00
zeze
201d99d984
feat: basic auth proxy ( #369 )
2022-09-30 10:36:52 +02:00
Joan Marcè i Igual
dbb4547d31
build: fix installation and change build default flags ( #372 )
...
* Change default submodules and fix install issue
The wrong target was used for installation of targets
* Disable flag as we changed the default
2022-08-04 13:29:15 +02:00
Ian Reinhart Geiser
973baa3749
build: Support vcpkg - Update cmake for system install ( #367 )
...
* Update cmake for system install
* remove tooling hack
* CMake 3.4 is required so this is not needed
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
* Use submodules on ci
* Update .github/workflows/ci.yml
* Update CMakeLists.txt
Co-authored-by: Joan Marcè i Igual <jmigual@users.noreply.github.com>
2022-08-01 11:37:06 +02:00
Abraham Hernandez
9bca702b92
build: removing .DS_Store ( #362 )
2022-04-26 10:18:53 +02:00
Patti Vacek
bacd9172e7
core: abort retrying when closing down. ( #312 )
...
Signed-off-by: Patti Vacek <pattivacek@gmail.com>
2022-03-29 10:00:34 +02:00
Tor Morten Finnesand
5a0c1ececd
core: re-enable ping timeout behaviour for 3x branch ( #351 )
...
Heartbeat mechanism was not properly working as intended.
For more info see: https://socket.io/docs/v4/how-it-works/#disconnection-detection
2022-03-09 16:02:20 +01:00
jianjunz
c733c3e165
docs: remove Cocoapods from iOS installation guide. ( #78 )
...
As mentioned in #67 , Cocoapods is not supported at this time.
2022-03-09 15:00:29 +01:00
dependabot[bot]
7496162fa3
deps: bump ws from 7.4.2 to 7.4.6 in /test/echo_server ( #308 )
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.2 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.2...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 09:38:48 +01:00
Joan Marcè i Igual
9ad238358b
chore: set default build type as Release
2022-03-08 12:12:46 +01:00
Federico Fuga
9173946c96
chore: Remove unnecessary check for CMAKE_BUILD_TYPE ( #311 )
2022-03-08 12:01:15 +01:00
Joan Marcè i Igual
e2ca1f1e16
Merge pull request #319 from Desp4/master
...
Make non-cmake installation instructions mimic cmake
2022-02-25 09:15:36 +01:00
Joan Marcè i Igual
c7e4103dc2
Merge branch 'master' into master
2022-02-25 09:13:57 +01:00
Joan Marcè i Igual
d823428541
Merge pull request #334 from Jikari/patch-1
...
Exposing include files for use in projects via FetchContent
2022-02-25 08:37:27 +01:00
Gabriel Jablonski
46597e393d
docs: add vcpkg installation instructions ( #252 )
2022-01-10 09:15:55 +01:00
Gabriel Jablonski
23f243ff55
feat: send auth object upon connecting ( #335 )
...
Usage:
```c++
sio::client client;
sio::message::ptr auth = sio::object_message::create();
auth->get_map()["token"] = sio::string_message::create("eyJhbGciOiJIUzI1NiIsInR...");
auth->get_map()["sessionId"] = sio::string_message::create("p0ZoB1FwH6");
client.connect(server_url, auth);
```
2021-11-23 23:44:34 +01:00
Joan Marcè i Igual
2b1dda79cf
chore: increase minimum CMake version ( #328 )
...
Reference: https://hsf-training.github.io/hsf-training-cmake-webpage/07-commonproblems/index.html
2021-11-23 23:31:12 +01:00
Berrae Meixsell
94a59f0224
Update CMakeLists.txt
...
Exposing include files for use in projects via FetchContent
2021-11-12 09:03:24 -06:00
Damien Arrachequesne
2573a120d9
docs: add changelog for version 2.1.0
2021-10-12 11:12:29 +02:00
Damien Arrachequesne
aba189cad8
chore(release): 3.1.0
3.1.0
2021-10-12 10:24:29 +02:00
Chris Grahn
82d39a90ef
feat: support TLSv1.2 and newer ( #321 )
2021-09-02 08:40:06 +02:00
Desp4
3ff5fc8347
update non-cmake installation guide
2021-08-01 02:41:05 +03:00
Johny Qiu
e8ea70776d
feat: use TLSv2 when TLS is used ( #310 )
2021-06-11 11:15:24 +02:00
Damien Arrachequesne
0581aaba02
docs: update compatibility table for Socket.IO v4
...
The v4 contains only a few breaking changes at the API level on the
server-side, so the current C++ client is compatible.
Reference: https://socket.io/docs/v4/migrating-from-3-x-to-4-0/
2021-03-24 23:01:55 +01:00
Edwin Shepherd
e7f17c6c26
docs: fix title format ( #297 )
2021-03-24 22:40:14 +01:00
Joel Nordell
36a8cd4527
feat: allow resource path to be set in connection URI ( #134 )
...
Please note that this implementation differs from the JS one, where the
resource path is the namespace you want to reach:
```js
const socket = io("https://example.com/my-namespace ", {
path: "/my-custom-path/"
});
```
Here, we will have:
```C++
sio::client h;
h.connect("https://example.com/my-custom-path/ ");
h.socket("/my-namespace")->emit("hello");
```
2021-02-14 07:01:35 +01:00
Adrian DC
e7de4ebf64
fix: resolve client_impl::ping LOG call syntax in debug builds
2021-02-09 00:04:31 +01:00
Adrian DC
d1c73b73a8
fix: resolve #254 : handle closing sockets upon on_fail events
2021-02-09 00:04:31 +01:00
DK Moon
b196fa7537
fix: lower the minimum CMake supported version
...
If CMake doesn't understand C++11-related property,
simply use the COMPILE_FLAGS property
2021-01-15 23:29:54 +01:00
Adrian DC
1b42ce738f
feat: implement #45 : add support for logging configuration
2021-01-15 23:29:54 +01:00
Damien Arrachequesne
ec4d540ad5
feat: add support for Socket.IO v3
...
See also:
- https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4
- https://github.com/socketio/socket.io-protocol#difference-between-v5-and-v4
3.0.0
2021-01-09 02:28:05 +01:00
Damien Arrachequesne
b1216ee428
refactor: use correct Engine.IO protocol revision
...
The 3rd revision is included in Socket.IO v1/v2, whereas the 4th is
included in Socket.IO v3.
Note: this query parameter is not currently checked on the server-side
Reference: https://github.com/socketio/engine.io-protocol
2.0.0
2021-01-09 02:13:39 +01:00
Vincent Raman
d353647b39
refactor: use standard install paths ( #58 )
2021-01-07 16:27:15 +01:00
Damien Arrachequesne
8d4fe204f1
ci: migrate to GitHub Actions
...
Due to the recent changes to the Travis CI platform (see [1]), we will
now use GitHub Actions to run the tests.
Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
[1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
2021-01-07 16:04:48 +01:00