All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.udash.rpc.internals.UsesClientRPC.scala Maven / Gradle / Ivy

There is a newer version: 0.2.0-rc.3
Show newest version
package io.udash.rpc.internals

import io.udash.rpc.{ClientRPC, RawInvocation, UsesRemoteRPC}

/**
 * Base trait for server-side components which use some RPC exposed by client-side.
 */
private[rpc] trait UsesClientRPC[ClientRPCType <: ClientRPC] extends UsesRemoteRPC[ClientRPCType] {
  protected def callRemote(callId: String, getterChain: List[RawInvocation], invocation: RawInvocation): Unit =
    throw new IllegalStateException("You can not broadcast remote call!")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy