Giter Site home page Giter Site logo

Comments (9)

nerzh avatar nerzh commented on May 29, 2024 1

Hi, if for some reason this is not enough for you
https://github.com/nerzh/Action-Cable-Swift?tab=readme-ov-file#authorization--headers
then no, the standard rails protocol did not accept other parameters during the development of this library

from action-cable-swift.

nerzh avatar nerzh commented on May 29, 2024 1

Starscream is fucking shit )
sorry but that's how it is 🙂

I added configurator for default socket implementation, try it maybe it will help you
Снимок экрана 2024-01-18 в 08 52 43

from action-cable-swift.

lexuanquynh avatar lexuanquynh commented on May 29, 2024 1

@nerzh
You saved my life.
I was really stuck in my code for 2 days.
Now I think I will share a little for someone in my case.

 // Add ignore check SSL
        var tLSConfiguration = TLSConfiguration.makeClientConfiguration()
        tLSConfiguration.certificateVerification = .none
        let configuration: WebSocketClient.Configuration = .init(tlsConfiguration: tLSConfiguration)

        wss = .init(stringURL: socketURL, configuration: configuration)

It's going really well. Thank you so much.

from action-cable-swift.

nerzh avatar nerzh commented on May 29, 2024 1

@lexuanquynh thanx, you welcome )

from action-cable-swift.

lexuanquynh avatar lexuanquynh commented on May 29, 2024

@nerzh
We are using a bearer token for this socket in our application. However, due to business requirements, SSL must be installed.
I realize this is quite unreasonable as there are two layers of security, but this is a project requirement.

from action-cable-swift.

lexuanquynh avatar lexuanquynh commented on May 29, 2024

@nerzh
Can you add an option to ignore SSL pin authentication?
I got this error when using Self-signature:

handshakeFailed(NIOSSL.BoringSSLError.sslError([Error: 268435581 error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED 

from action-cable-swift.

nerzh avatar nerzh commented on May 29, 2024

The fact is that I updated the readme file and wrote there that there is now a default web socket implementation. But I forgot to push the commits of this implementation and uploaded these changes right now. Based on this situation, I think that you used your provider, which was inherited from the websocket protocol, since you do not have these changes yet. So it is necessary to solve this problem in your implementation of the websocket protocol?

from action-cable-swift.

lexuanquynh avatar lexuanquynh commented on May 29, 2024

@nerzh
thank for your response.
I tried using another library, Starscream.
When I installed it, it connected fine.

  let pinner = FoundationSecurity(allowSelfSigned: true)
         socket = WebSocket(request: request, certPinner: pinner)

So I am wondering if it is possible to omit SSL in the source code.
I am really a beginner so setting up Socket is a bit difficult for me.

from action-cable-swift.

lexuanquynh avatar lexuanquynh commented on May 29, 2024

@nerzh thank bro. I will try again.

from action-cable-swift.

Related Issues (14)

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.