chat

package
v0.0.0-...-f491d88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	// contains filtered or unexported fields
}

func NewChat

func NewChat(h *handshake.Handshake) *Chat

func (*Chat) Listen

func (c *Chat) Listen()

func (*Chat) Messages

func (c *Chat) Messages() <-chan Message

func (*Chat) Send

func (c *Chat) Send(message string) error

type Message

type Message struct {
	Me      bool
	Content string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL