RPC not working with getters

The error says that bar is not a function. I'm looking to call WORKER.foo.bar() instead of WORKER.foo().bar().
class Foo extends RpcTarget {
bar() {
return "baz"
}
}

class WorkerEntrypoint {
get foo() {
return new Foo()
}
}
class Foo extends RpcTarget {
bar() {
return "baz"
}
}

class WorkerEntrypoint {
get foo() {
return new Foo()
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server