-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add wss client support #181
Conversation
Hi @adam429 - I'd be happy to accept this contribution to the new |
@@ -28,6 +28,7 @@ def initialize(log = false) | |||
def self.create(host_or_ipcpath, log = false) | |||
return IpcClient.new(host_or_ipcpath, log) if host_or_ipcpath.end_with? '.ipc' | |||
return HttpClient.new(host_or_ipcpath, log) if host_or_ipcpath.start_with? 'http' | |||
return WssClient.new(host_or_ipcpath, log) if host_or_ipcpath.start_with? 'wss' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should also support insecure websockets.
return WssClient.new(host_or_ipcpath, log) if host_or_ipcpath.start_with? 'wss' | |
return WsClient.new(host_or_ipcpath, log) if host_or_ipcpath.start_with? 'ws' |
|
||
module Ethereum | ||
class WssConnection | ||
attr_accessor :host,:ws_in,:ws_out,:ws_err,:wait_thr,:index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also should have an ssl attribute.
attr_accessor :host,:ws_in,:ws_out,:ws_err,:wait_thr,:index | |
attr_accessor :host, :ws_in, :ws_out, :ws_err, :wait_thr, :ssl, :index |
Add wss client support for ethereum.rb
Support node via wss connection "wss://xxxx"
Using the pipeline of wscat.