pusher-websocket-ruby | Ruby WebSocket client for Pusher Channels | Websocket library
kandi X-RAY | pusher-websocket-ruby Summary
kandi X-RAY | pusher-websocket-ruby Summary
Ruby WebSocket client for Pusher Channels
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Receive a message from the socket .
- Connect to the web socket
- Send a message to the server
- Disconnects from the registry .
- Send a specific event
- Dispatch to callbacks .
- Authenticates via a channel
- Creates a new connection
- Unsubscribe from a channel
- Parse JSON data
pusher-websocket-ruby Key Features
pusher-websocket-ruby Examples and Code Snippets
Community Discussions
Trending Discussions on pusher-websocket-ruby
QUESTION
I'm trying to connect to the Liquid exchange's Stream API with pusher. Documentation here
I have constructed a function that is in line with the Pusher library's documentation. Link to that here My current code looks like this:
...ANSWER
Answered 2020-Mar-07 at 02:32The error comes from tcpsocket.new (Ruby https://ruby-doc.org/stdlib-2.5.1/libdoc/socket/rdoc/TCPSocket.html) in websocket line 17: https://github.com/pusher-community/pusher-websocket-ruby/blob/master/lib/pusher-client/websocket.rb
ws_host tap.liquid.com 80 seems to be invalid, https://pusher.com/docs/channels/library_auth_reference/pusher-websockets-protocol
I have tried using a secure connection, at least in the browser and got a 404 for ws and invalid request, which is good in this case, for https (https://tap.liquid.com/).
You need to configure ssl in the client configuration, but the pusher-client gem as well as one other I have found are pretty old. Maybe it is wise to switch to a more up-to-date library like https://github.com/pusher/pusher-http-ruby/blob/master/README.md
The example contains an option for activated SSL.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pusher-websocket-ruby
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page