Skip to content

Commit

Permalink
test: send multibyte string
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 24, 2024
1 parent cbb1415 commit f2439ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ pub async fn handle(connection: &mut server::Connection, json: &str) {

/// Ping pong
mod ping {
use chrono;
use crate::server;
use chrono;

pub async fn handle(connection: &mut server::Connection, json: &serde_json::Value) {
tracing::trace!("method: {:?}", json["method"]);
connection
.send(serde_json::json!({
"method": "pong",
"timestamp": chrono::offset::Local::now().to_string(),
//"timestamp": chrono::offset::Local::now().to_string(),
"some": "ラウトは難しいです!",
}))
.await;
}
Expand Down

0 comments on commit f2439ac

Please sign in to comment.