Search in sources :

Example 1 with ObjectMessageDelegator

use of com.jme3.network.util.ObjectMessageDelegator in project jmonkeyengine by jMonkeyEngine.

the class RpcClientService method onInitialize.

/**
     *  Used internally to setup the RpcConnection and MessageDelegator.
     */
@Override
protected void onInitialize(ClientServiceManager serviceManager) {
    Client client = serviceManager.getClient();
    this.rpc = new RpcConnection(client);
    delegator = new ObjectMessageDelegator(rpc, true);
    client.addMessageListener(delegator, delegator.getMessageTypes());
}
Also used : Client(com.jme3.network.Client) ObjectMessageDelegator(com.jme3.network.util.ObjectMessageDelegator)

Aggregations

Client (com.jme3.network.Client)1 ObjectMessageDelegator (com.jme3.network.util.ObjectMessageDelegator)1