Is there any way that I can get only last message sent instead of sending them all to socket client?
Should I modify this or?
`
// Add queued chat messages to the current websocket message.
n := len(c.send)
for i := 0; i < n; i++ {
w.Write(newline)
w.Write(<-c.send)
}`
Is there any way that I can get only last message sent instead of sending them all to socket client?
Should I modify this or?
`
// Add queued chat messages to the current websocket message.