chore: Adding mainFn helpers

This commit is contained in:
BluJ
2023-04-07 11:43:05 -06:00
parent 74e765511e
commit 49277bfc78
35 changed files with 457 additions and 183 deletions

View File

@@ -0,0 +1,11 @@
import { Origin } from "./Origin";
export class LocalBinding {
constructor(readonly localAddress: string, readonly ipAddress: string) {}
createOrigins(protocol: string) {
return {
local: new Origin(protocol, this.localAddress),
ip: new Origin(protocol, this.ipAddress),
};
}
}