Comments (9)
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.
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
from action-cable-swift.
@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.
@lexuanquynh thanx, you welcome )
from action-cable-swift.
@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.
@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.
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.
@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.
@nerzh thank bro. I will try again.
from action-cable-swift.
Related Issues (14)
- addOnMessage never gets called with starscream HOT 1
- Channel not being subscribed HOT 1
- Connection issue in actioncable HOT 15
- onPing / onPong never called? HOT 3
- Update for use with URLSessionWebSocketTask HOT 1
- Leaked connections when trying to connect to a high latency server HOT 7
- The `send message` action is not working. HOT 2
- addOnMessage Calls multiple times for a single broadcast HOT 2
- Priority inversion warning HOT 1
- Any chance of a new release with the ping / channel name fix? HOT 4
- reconnect should fall back gracefully HOT 3
- Socket connected but client.isConnected is false
- WSS non Starscream class thread warning(s) HOT 4
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 action-cable-swift.