class Terminalwire::Client::Handler
def connect
def connect @adapter.write(event: "initialization", protocol: { version: VERSION }, entitlement: @entitlement.serialize, program: { name: @program_name, arguments: @program_arguments }) loop do handle @adapter.read end end