# File lib/libwebsocket/frame.rb, line 46 def next return unless @buffer.slice!(/^[^\x00]*\x00(.*?)\xff/nm) string = $1 string.force_encoding('UTF-8') if string.respond_to?(:force_encoding) return string end