Skip to content

Chat example last message #433

@croatiangrn

Description

@croatiangrn

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)
		}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions