Is there a way to set the delimeter from \r\L to something else (perhaps without editting the asyncnet library itself). This is my current solution:
proc recvAll(s: AsyncSocket):Future[string] {.async.} =
var line = ""
while not line.contains("\0"):
var data = await s.recv(1)
if data != "":
line = join([line, data])
else:
break
result = line