shokai / websocket-client-simple

Simple WebSocket Client on Ruby
https://rubygems.org/gems/websocket-client-simple
MIT License
115 stars 68 forks source link

ping frames support? #33

Open dwery opened 6 years ago

dwery commented 6 years ago

Is there any support for sending ping frames?

maksimmernikov commented 5 years ago

+1

prateeksen commented 3 years ago

+1

prateeksen commented 3 years ago

I think it is already supported: Found a workaround for this: You can expect a ping from WebSocket server and on receiving it you can send a pong:

EventSender.ws.on :message do |msg| if msg.type == :ping ws.send("", :type => :pong) end end

unasuke commented 2 years ago

@dwery This repository was moved ruby-jp/websocket-client-simple. If you still need this, make pull request or issue to ruby-jp/websocket-client-simple again, thx.