1.0.12 • Published 2 years ago

@ezgame/rpc v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago