igrigorik/em-websocket — pull request #90 by imanel (2012-09-07 15:03:38+00:00)
Title: Fix frame generation for Draft 04

Hi,
In draft 03 and 04 you use common code with exception of FIN bit. It's properly handled when [receiving data](https://github.com/imanel/em-websocket/blob/master/lib/em-websocket/framing03.rb#L17) but it wasn't handled when sending data. This pull request should add proper handling of it.