This commit is contained in:
2025-08-29 10:35:27 +02:00
parent ce6cf3aa9c
commit 90a3ce1181
2 changed files with 4 additions and 6 deletions

View File

@@ -158,5 +158,5 @@ pub fn decode_request_generic[T](data string) !RequestGeneric[T] {
// Returns:
// - A JSON string representation of the RequestGeneric object
pub fn (req RequestGeneric[T]) encode[T]() string {
return json2.encode_pretty(req).replace('\\/', '/')
return json2.encode(req)
}

View File

@@ -77,11 +77,9 @@ pub fn (mut t UnixSocketTransport) send(request string, params SendParams) !stri
}
// Append the newly read data to the total response
res_total << res[..n]
if n < 8192 {
// console.print_debug('No more data to read, breaking loop after ${n} bytes')
// TODO: this seems weird
break
}
//here we need to check we are at end
}
unix.shutdown(socket.sock.handle)
socket.close() or {}