class Kraken::Godot30Handler

This class made the handler with godot 3.0 To use this handler, setup this line in config file: config.server name: 'app name', version: '1.0', handler: :godot_30

Public Instance Methods

read() click to toggle source
# File lib/kraken/core/handlers/godot30_handler.rb, line 8
def read
  string_length = @socket.read(4).unpack('L<').first
  raise 'connection lost' if string_length.nil?
  line = @socket.read(string_length)
  raise 'connection lost' if line.nil?
  line.chomp
end