Versions in this module Expand all Collapse all v0 v0.0.2 May 18, 2024 v0.0.1 May 6, 2024 Changes in this version + type CanFrame struct + ArbitrationID uint32 + DLC uint8 + Data []byte + func NewCanFrame(arbitrationID uint32, DLC uint8, data []byte) *CanFrame + func (f *CanFrame) GetData() (raw []byte, err error) + type ReceiveCallback func(msg any) + type WsMsg struct + Device string + Msg cancoder.CanValueDef + type WsServer struct + func NewWsServer(port uint16, path string, receiveCallback ReceiveCallback, apiKey string, ...) *WsServer + func (s *WsServer) Send(msg any) error + func (s *WsServer) SendCanFrame(frame CanFrame) error + func (s *WsServer) SendEncoded(msg WsMsg) error + func (s *WsServer) Serve() error + func (t *WsServer) OnConnect(id int) + func (t *WsServer) OnDisconnect(id int) + func (t *WsServer) OnFailure(exited bool, err error) + func (t *WsServer) OnReceive(msg websocket.Message)