|
|
@@ -43,10 +43,10 @@ func WriteLastTenActionsIfHave(conn *websocket.Conn) { |
|
|
|
size := socketwrap.LastTenActionsQueue.Queue.Len() |
|
|
|
if size > 0 { |
|
|
|
tempE := socketwrap.LastTenActionsQueue.Queue.Front() |
|
|
|
conn.WriteJSON(tempE) |
|
|
|
conn.WriteJSON(tempE.Value) |
|
|
|
for i := 1; i < size; i++ { |
|
|
|
tempE = tempE.Next() |
|
|
|
conn.WriteJSON(tempE) |
|
|
|
conn.WriteJSON(tempE.Value) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|