func NewThermoModel(s *Socket) *ThermoModel {
	m, ok := s.Assigns().(*ThermoModel)
	if !ok {
		m = &ThermoModel{
			C: 19.5,
		}
	}
	return m
}
Helper function to get the model from the socket data.
package live
import (
	"bytes"
	"context"
	"html/template"
	"io"
	"log"
	"net/http"
)
type ThermoModel struct {
	C float32
}