sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
WebSocket::Frame::Incoming#decoded?
If data is still encoded after receiving then this is false. After calling "next" you will receive another instance of incoming frame, but with data decoded - this function will return true and to_s will return frame content instead of raw data.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/websocket-ruby-1.2.8/lib/websocket/frame/incoming.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WebSocket--Frame--Incoming-decoded--for-pr
# Commit to gitgit add app/server/ruby/vendor/websocket-ruby-1.2.8/lib/websocket/frame/incoming.rbgit commit -m "better docs for WebSocket::Frame::Incoming#decoded?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WebSocket--Frame--Incoming-decoded--for-pr
hub pull-request
# Celebrate!