Git Product home page Git Product logo

Comments (8)

bsergean avatar bsergean commented on August 10, 2024 1

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.

bsergean avatar bsergean commented on August 10, 2024

Here's the web browser api:

ws-1024x369

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.

bsergean avatar bsergean commented on August 10, 2024

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.

oboolean avatar oboolean commented on August 10, 2024

@bsergean good idea
do you implement those callback onopen onerror onclose onmessage ...

from easywsclient.

bsergean avatar bsergean commented on August 10, 2024

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.

dhbaird avatar dhbaird commented on August 10, 2024

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.

bsergean avatar bsergean commented on August 10, 2024

We finally open-sourced our library, here it is:

https://github.com/machinezone/IXWebSocket

from easywsclient.

bsergean avatar bsergean commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.