func (s *Socket) sendClose(ctx context.Context, out chan<- message.Message) {
	select {
	case <-ctx.Done():
		return
	default:
	}
	m := message.Message{
		Type:       message.SocketClose,
		PlayerName: s.PlayerName,
		Addr:       s.Addr,
	}
	message.Send(m, out, s.Debug, s.log)
}
// sendClose notifies the out channel that it is closed, hopefully causing it to close the in channel.
sendClose notifies the out channel that it is closed, hopefully causing it to close the in channel.
// sendClose notifies the out channel that it is closed hopefully causing it to close the in channel .
func (s *Socket) sendClose(ctx context.Context, out chan<- message.Message) {
	select {
	case <-ctx.Done():
		return
	default:
	}
	m := message.Message{
		Type:       message.SocketClose,
		PlayerName: s.PlayerName,
		Addr:       s.Addr,
	}
	message.Send(m, out, s.Debug, s.log)
}
func ( s * Socket ) sendClose ( ctx context . Context , out chan <- message . Message ) { select { case <- ctx . Done ( ) : return default : } m := message . Message { Type : message . SocketClose , PlayerName : s . PlayerName , Addr : s . Addr , } message . Send ( m , out , s . Debug , s . log ) }
sendClose notifies the out channel that it is closed, hopefully causing it to close the in channel.
sendClose notifies the out channel that it is closed hopefully causing it to close the in channel .