1.0.12 • Published 10 months ago

@ezgame/rpc v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

EasyGame rpc module

overview

this module is ezgame rpc module

install

npm i @ezgame/rpc

usage

import { TCPCommunicator } from "@ezgame/rpc"
import * as Log from "@ezgame/log"
import * as protocol from './protocol'

const Tag = "TEST"

async function run(){
    try{
        var comm = new TCPCommunicator();
        var proxy = await comm.connect("localhost", 7001, protocol.TestProxy);
        var r = await proxy.test("aaa", 111);
        Log.debug(Tag, "test result: ", r);
    }
    catch(e){
        Log.error(Tag, "error: ", e);
    }
}

run();
1.0.12

10 months ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago