func tempDown(ctx context.Context, s *Socket, p Params) (interface{}, error) {
	model := NewThermoModel(s)
	model.C -= 0.1
	return model, nil
}
tempDown on the temp down event, decrease the thermostat temperature by .1 C.
package live
import (
	"bytes"
	"context"
	"html/template"
	"io"
	"log"
	"net/http"
)
type ThermoModel struct {
	C float32
}
func NewThermoModel(s *Socket) *ThermoModel {
	m, ok := s.Assigns().(*ThermoModel)
	if !ok {
		m = &ThermoModel{
			C: 19.5,
		}
	}
	return m
}
func thermoMount(ctx context.Context, r *http.Request, s *Socket) (interface{}, error) {
	return NewThermoModel(s), nil
}
func tempUp(ctx context.Context, s *Socket, p Params) (interface{}, error) {
	model := NewThermoModel(s)
	model.C += 0.1
	return model, nil
}