MP4B3BXAJKP6S7VE4OWRNASMBDKWDY2CHN7PK5SVAQN6YMUID2CAC
HA7HWWCWLZNJVHU7BI4IL5HTT26V44HJKDRZHXMT5AN6B7NH7N6AC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
TKEQSYZ7PZ4GBD6R4EOOE26TQ6VKXBXLYRLUUYWOOQ7SVXQSVETQC
AETEUT6ER7MJXNYTBH5RHUT5URSRWNBJPXU2CA4URLSNAZYMWPIAC
ZMAZUHFHJOW2GSUH5SUDXRG4STQ6PQHWYGZIZHEJCN73PSNQOAAQC
4SFN5L36NYBFPXLBSWXO4KXDBY2W4YP4CNNVX23E2BQ7W2A6GVZQC
}
pub fn (mut self MatrixActor) listen() {
_ := Channel{
name: 'bob'
}
if sock := net.dial_tcp(self.host) {
println('matrix connected $self.host')
mut reader := io.new_buffered_reader(reader: io.make_reader(sock))
for {
if line := reader.read_line() {
self.chan <- line
} else {
break
}
}
} else {
println('matrix socket fail: $err')
}