Decode TCP stream too

This commit is contained in:
Tony Garnock-Jones 2018-11-18 17:01:11 +00:00
parent d72b981c7d
commit 7f362ad99f
1 changed files with 1 additions and 2 deletions

View File

@ -46,9 +46,8 @@ spawn named 'tcpListener' {
during Tcp.TcpConnection($id, Tcp.TcpListener(8001)) spawn named ['tcpConnection', id] {
assert Tcp.TcpAccepted(id);
on message Tcp.DataIn(id, $data) {
console.log('got', id, data);
console.log('got', id, new Decoder(data).next());
send Tcp.DataOut(id, data);
}
}
}