From 62ff403d926d7e16e5103d3f2211f98c93ff022b Mon Sep 17 00:00:00 2001 From: Sisi Date: Sat, 11 Apr 2026 22:38:05 +0200 Subject: [PATCH] fix base64 encode of jsons --- go-socket | Bin 15939224 -> 15939224 bytes todo.txt | 3 --- wsServer.go | 9 +-------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/go-socket b/go-socket index 6dc053a1374bea9e193f10f711cb0c450703da17..86c133d4d1eaa066eb082626ecc473288e2a00c8 100755 GIT binary patch delta 1273 zcmb`@=U>bL0LSs8$i9$0vL()4-7K@TGoCYN_57r3ux0 z=#ot?!Ra1eX0t>VDvj`QGy8_i6FpPhjIsVknK4n~Cr$FzhItq=qf8k_ZKg6%q6}8) zMAjma$PQNU)`p6zDpF0}IVnL!^52Cu_I`C?UU{X`1d~pskY+cCa~s4>&=gj%Ml&>r z4O*ZjTA?-Cpe@?r@7EUX(E%M{hfe5>F6fGG=#C!fiC*Xpd-OqH^h19Pz(5SbU^rk1 z95EEbAi;1*A%hc~A%_A=sGx=hE^x&NjKnC6#u$u+8{9Dt9`J-0yx{|1_+dQ!F#%cx zAP_;Ah+u>u6k!O*Bt&2`reLb2K^$pUZL5;WC4#eFP-_%ARg8;Z5!XfV2o4ADv+{PVL zq6&9$5BKo^5Ag_(@dVX)if4F^7kG(Rc#SuBi+6aB5BP{0d_pbi@EKoFj|O~2BfjA~ Ne&DAiI_;OH{14waV*&sG delta 1273 zcmb`@=U)r}0LJm7$i9$0A}eujUw4^N+M%w6=8c?6+E+$MvNvUfkc^N~XDfST6B$_v zCF?Kn^UfdO#rJvfd_K>cr=YporT}H}!fZc{*)7Xo?xytDnsjOpMWEKlM=bHtrX+|| zS#cR^cVB6eSr(dT7KeGdW_g9k6Wo(sV-3EslGp^1w>Uj4G&L|eKrav02FX+TPhoOl;{4xAM^RqDK9E*Ckn9(yRipF*o%GGk767^2@c{A z4&w+)aTLdJ9A!9xlQ@ObC`Sb>ID@k|hx53Ai@1c#s6-X6;3}@+I&R=5Zs9iW;4Z3h z5BKo^5Ag_(@dQut3^jO;7pTQcyuxd|K^@-W9p2*uKB69<(16eQg0E;q6TYDt-|+)K M@yimG_FG-`2S@r|^Z)<= diff --git a/todo.txt b/todo.txt index cca5150..ef672cf 100644 --- a/todo.txt +++ b/todo.txt @@ -1,6 +1,3 @@ -fix irc - - chat history rewrite to use uuid media support diff --git a/wsServer.go b/wsServer.go index 31294a7..62460ba 100644 --- a/wsServer.go +++ b/wsServer.go @@ -2,7 +2,6 @@ package main import ( "context" - "encoding/json" "errors" "log" "net/http" @@ -63,15 +62,9 @@ func sendMessageStructCloseIfTimeout(user *User, message *Message) { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - jsonMsg, err := json.Marshal(message) - if err != nil { - log.Printf("json marshal error: %v", err) - return - } - err = wsjson.Write(ctx, user.WsConn, jsonMsg) + err := wsjson.Write(ctx, user.WsConn, message) if err != nil { log.Printf("json write error: %v", err) - return } }