func NewWebsocket(id, address string, auth mqtt.Auth) *Websocket {
	ws := &Websocket{
		id:      id,
		address: address,
		auth:    auth,
	}

	if ws.auth == nil {
		ws.auth = &mqtt.AuthAllow{}
	}

	return ws
}
// NewWebsocket initialises and returns a new Websocket listener, listening on an address.
NewWebsocket initialises and returns a new Websocket listener, listening on an address.
// NewWebsocket initialises and returns a new Websocket listener listening on an address .
func NewWebsocket(id, address string, auth mqtt.Auth) *Websocket {
	ws := &Websocket{
		id:      id,
		address: address,
		auth:    auth,
	}
	if ws.auth == nil {
		ws.auth = &mqtt.AuthAllow{}
	}
	return ws
}
func NewWebsocket ( id , address string , auth mqtt . Auth ) * Websocket { ws := & Websocket { id : id , address : address , auth : auth , } if ws . auth == nil { ws . auth = & mqtt . AuthAllow { } } return ws }
NewWebsocket initialises and returns a new Websocket listener, listening on an address.
NewWebsocket initialises and returns a new Websocket listener listening on an address .