Comments (8)
Great, I'll see what I can do ... I hope I'll have time to take the time to do it ... :)
BTW thanks so much for writing this library in the first place, it has helped us tremendously.
from easywsclient.
Here's the web browser api:
I don't think that we need the onmessage callback, but maybe we could use the other 3 ones, onerror, onclose, and onerror. There's another C++ library that has similar callbacks, actually a lot more. Maybe we don't need that many but those 3 I'm describing sounds like a good start -> https://github.com/zaphoyd/websocketpp/blob/master/websocketpp/connection.hpp
from easywsclient.
Read the web document a little further, and onclose is actually the only event that will carry a description of the "error". The other events do not carry any extra information.
from easywsclient.
@bsergean good idea
do you implement those callback onopen onerror onclose onmessage ...
from easywsclient.
Yeah I implemented those callbacks in my now heavily modified version of this (great) library. I should find a way to contribute it to this project or make a sister standalone project.
I also have SSL support on iOS and Android, macOS and Linux (didn't do anything on Windows though). What I did is make an abstraction for the socket transport. I reused a lot of SSL code from the satori C sdk, which is a C library that builds on top of web socket to give a pubsub with advanced features (such as SQL like queries) -> https://github.com/satori-com/satori-rtm-sdk-c/tree/master/core/src
from easywsclient.
Hi! I do support sending a pull request, with the following properties:
- Doesn't break backwards compatibility.
- Follows the style of the current code.
- Includes some integration tests in the
test/
folder.
Making an abstraction for the socket transport sounds like the right way to go for SSL. I could look at the code, if you have a link handy, and give pre-pull-request feedback if you'd like.
Thanks for looking into this issue.
from easywsclient.
We finally open-sourced our library, here it is:
https://github.com/machinezone/IXWebSocket
from easywsclient.
Hey I won't need this that much now that we have our hacked-up version of easywsclient (btw I just added Windows support for it by again looking at easywsclient).
Closing to have less noise on the bug tracker.
from easywsclient.
Related Issues (20)
- getting error when im trying to connect HOT 2
- about vector variable need be clear() and swap()
- not compiled on msys2 HOT 2
- "hostname_connect" funtion code bug
- Memory leak
- from_url() missing close(sockfd)
- Compiling
- connecting to wss through proxy
- How to add parameter at function handle_message
- hello,is there a bug here? HOT 1
- Update npm dependencies to resolve (harmless) security vulnerability in ws
- Check for invalid frame length HOT 1
- VS ERROR LNK2001 Unresolved external symbol easywsclient::WebSocket::from_url HOT 1
- Integrating with OSS-Fuzz HOT 5
- unable to connect: aborted
- Multiple Clients
- >65000 byte send fail
- Half closed connection not handled HOT 1
- Assertion 'ws' failed in ubuntu18.04 HOT 1
- Notifications from the server are not received HOT 1
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 easywsclient.