Converted the write buffer into an array of "packets" or messages with offset. This way I can avoid unnecessary memory usage.
Converted the write buffer into an array of "packets" or messages with
offset. This way I can avoid unnecessary memory usage.

philek/PHP-Websockets,philek/PHP-Websockets