func (c *Channel) Socket() *Socket {
	return c.s
}
Socket returns the channel's socket.
package glue
import (
	"fmt"
	"runtime/debug"
	"sync"
	"time"
	"github.com/desertbit/glue/log"
	"github.com/desertbit/glue/utils"
)
const (
	readChanBuffer = 7
)
type Channel struct {
	s           *Socket
	readHandler *handler
	name     string
	readChan chan string
}
func newChannel(s *Socket, name string) *Channel {
	return &Channel{
		s:           s,
		readHandler: newHandler(),
		name:        name,
		readChan:    make(chan string, readChanBuffer),
	}
}