add ui file

This commit is contained in:
liuzhihang1
2024-06-28 21:44:21 +08:00
parent cf22322d31
commit 8889c86e75
41 changed files with 9619 additions and 25 deletions

View File

@@ -107,7 +107,7 @@ func (p *ProcessStd) pInit() {
func (p *ProcessStd) ReadCache(ws *websocket.Conn) {
for _, line := range p.cacheLine {
ws.WriteMessage(websocket.TextMessage, []byte(line))
ws.WriteMessage(websocket.BinaryMessage, []byte(line))
}
}
@@ -128,7 +128,7 @@ func (p *ProcessStd) readInit() {
output = p.Read()
if p.IsUsing.Load() && output != "" {
p.ws.wsMux.Lock()
p.ws.wsConnect.WriteMessage(websocket.TextMessage, []byte(output))
p.ws.wsConnect.WriteMessage(websocket.BinaryMessage, []byte(output))
p.ws.wsMux.Unlock()
}
}