in Speckle.ts, the default set at the top is always overwritten if any args are passed. If token is passed, but not server it should not override the default
public readonly server: string = 'https://speckle.xyz';
public readonly token?: string;
constructor(args?: SpeckleConfig) {
if (args) {
this.server = args.server;
this.token = args.token;
}
}
in Speckle.ts, the default set at the top is always overwritten if any args are passed. If
token
is passed, but notserver
it should not override the default