func (c *Channel) Close() {
	if c.server != nil {
		closeChannel(c, &c.server.methods)
	}
}
Close current channel
package gosocketio
import (
	"bytes"
	"crypto/md5"
	"encoding/base64"
	"encoding/json"
	"errors"
	"fmt"
	"github.com/mcoo/OPQBot/golang-socketio-edit/protocol"
	"github.com/mcoo/OPQBot/golang-socketio-edit/transport"
	"math/rand"
	"net/http"
	"sync"
	"time"
)
const (
	HeaderForward = "X-Forwarded-For"
)
var (
	ErrorServerNotSet       = errors.New("Server not set")
	ErrorConnectionNotFound = errors.New("Connection not found")
)
type Server struct {
	methods
	http.Handler
	channels     map[string]map[*Channel]struct{}
	rooms        map[*Channel]map[string]struct{}
	channelsLock sync.RWMutex
	sids     map[string]*Channel
	sidsLock sync.RWMutex
	tr transport.Transport
}