I’ve been experimenting with using RPC from JavaScript and found out that server RPC methods annotated with @Delayed are not actually delayed.
Consider the following interface:
public interface TestServerRpc extends ServerRpc {
@Delayed(lastOnly = true)
void valueChanged(String newValue);
}
I expect only the latest invocation to be sent to the server-side when something non-delayed is called but I see server-side method called every time it is invoked from JavaScript.
The only workaround I see is not to use RPC from JavaScript.