Comments (4)
Hi, nice suggestion. I've never tried it.
Both the client and the server are designed to be transport agnostic so it may work (or almost work).
Clients are constructed with a connected socket, maybe it will work out of the box if you construct it with a websocket.
Servers are constructed with an acceptor so there are chances it would work as well.
As websockets are not standard sockets, I expect a few API incompatibilities though. Feel free to try it out if you'd like to tinker with packio.
I'll try to find some time to test it on my own, and maybe officially support it, with unit tests and such
from packio.
I've taken a quick look at this tonight and it does not seem that simple. I'd probably need to add an abstraction layer between packio and asio to allow customization.
Not sure when I'll find time for that, but that may be the next improvement of packio.
from packio.
Hey, to keep you up to date, I've been working on websockets and I've ironed out most bugs. It should be available pretty soon. By the way my guess is that packio will offer SSL support soon as well as supporting websockets and SSL have a lot in common (intermediary transport layer)
from packio.
I've officially added support for websockets (which means they are part of the unit tests). I'm planning on adding support for SSL, cleaning up the docs and releasing 2.2.0
from packio.
Related Issues (20)
- MSVC: warning C4702 (unreachable code) in Debug
- Boost.Json with boost 1.75
- Boost.json on macOS
- Local sockets on windows HOT 2
- Coroutines on MSVC
- Use gcc-11 for C++20
- Clang: use coroutines without libc++
- Cmake: enable coroutines for cxx_standard >= 20
- Progress support with WebSocket adapter HOT 2
- RPC client as class member variable HOT 4
- Separated client and server HOT 7
- Accessing session from handler? HOT 2
- packio in cmake project HOT 6
- Feature proposal - unsolicited notifications HOT 2
- How to deal with optional parameters HOT 2
- Differentiate between cancel and closing HOT 2
- Connections handling by separate threads HOT 1
- conan package install error: 'ConanOutput' object has no attribute 'warn' HOT 1
- Omit data field in error response HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packio.