sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

WebSocket::Frame::Incoming#next

Return next complete frame.
This function will merge together splitted frames and return as combined content.
Check #error if nil received to check for eventual parsing errors

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-WebSocket--Frame--Incoming-next-for-pr


# Commit to git

git add app/server/ruby/vendor/websocket-ruby-1.2.8/lib/websocket/frame/incoming.rbgit commit -m "better docs for WebSocket::Frame::Incoming#next"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-WebSocket--Frame--Incoming-next-for-pr

hub pull-request


# Celebrate!