Make close code checking faster
Make close code checking faster

include? is O(n), and in practice 2 orders of magitude slower than this implementation for high close codes

lvnhmd/em-websocket,igrigorik/em-websocket,telekomatrix/em-websocket