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

	if 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 NewWebsocketWithTLS(id, address string, auth mqtt.Auth, tls *tls.Config) *Websocket {
	ws := &Websocket{
		id:      id,
		address: address,
		tls:     tls,
	}
	if auth == nil {
		ws.auth = &mqtt.AuthAllow{}
	}
	return ws
}
func NewWebsocketWithTLS ( id , address string , auth mqtt . Auth , tls * tls . Config ) * Websocket { ws := & Websocket { id : id , address : address , tls : tls , } if 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 .