func (c *Conn) send(msg interface{}) error {
	if !c.connected.Load().(bool) {
		return errors.New("use of closed connection")
	}

	return websocket.JSON.Send(c.ws.Load().(*websocket.Conn), msg)
}
func (c *Conn) send(msg interface{}) error {
	if !c.connected.Load().(bool) {
		return errors.New("use of closed connection")
	}

	return websocket.JSON.Send(c.ws.Load().(*websocket.Conn), msg)
}
// Send sends the given message through the connection.