This commit is contained in:
poiuty 2023-07-01 17:17:28 +03:00
parent 2ab97d2d10
commit 4a56900df4
2 changed files with 44 additions and 44 deletions

View file

@ -2,11 +2,11 @@ package main
import (
"fmt"
jsoniter "github.com/json-iterator/go"
"io"
"log"
"net"
"os"
"io"
jsoniter "github.com/json-iterator/go"
)
func removeSocket(s string) {
@ -45,6 +45,6 @@ func socketHandler(conn net.Conn) {
fmt.Println("json error:", err.Error())
continue
}
ws.Send <- wsMessage{Message: raw, Decode: true}
ws.Send <- raw
}
}