Compare commits
No commits in common. "a2a630893f57a188be83859acd6201adda782ad7" and "009c0739d2ff0360a2f409397a25a9129267e11c" have entirely different histories.
a2a630893f
...
009c0739d2
@ -97,10 +97,10 @@ pub async fn run(
|
||||
data.extend_from_slice(&bytes);
|
||||
}
|
||||
log::debug!("{} bytes received from server", data.len());
|
||||
log::trace!("msg: (raw): {}", String::from_utf8_lossy(&data));
|
||||
log::trace!("server response (RAW): {}", String::from_utf8_lossy(&data));
|
||||
|
||||
let response = Response::decode(data.freeze());
|
||||
log::trace!("msg: {response:?}");
|
||||
log::trace!("server response (DECODED): {response:?}");
|
||||
|
||||
match response {
|
||||
Response::Games(games) => {
|
||||
|
@ -71,13 +71,17 @@ impl Server {
|
||||
// handle streams
|
||||
while let Ok(Some(data)) = rx.receive().await {
|
||||
tracing::trace!(
|
||||
"{} msg: (raw): {}",
|
||||
"{} client request (raw): {}",
|
||||
conn_ctx.remote_addr,
|
||||
String::from_utf8_lossy(&data)
|
||||
);
|
||||
|
||||
let request = Request::decode(data);
|
||||
tracing::debug!("{} msg: {:?}", conn_ctx.remote_addr, request);
|
||||
tracing::debug!(
|
||||
"{} client request (decoded): {:?}",
|
||||
conn_ctx.remote_addr,
|
||||
request
|
||||
);
|
||||
let response =
|
||||
conn_ctx.server_ctx.handler.handle_request(request).await;
|
||||
tracing::trace!(
|
||||
|
@ -13,8 +13,8 @@
|
||||
"windows": [
|
||||
{
|
||||
"title": "lanspread-tauri-deno-ts",
|
||||
"width": 1526,
|
||||
"height": 1120
|
||||
"width": 800,
|
||||
"height": 600
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user