gm-api-sdk
用于GM后台API的SDK ...
安装
yarn add gm-api-sdk
使用
//定义配置const options = path : './pb' socket : 'socket.proto' gmPB : 'gm.proto' prefix : 'com.autorun' const socket = '192.168.1.92:7015'const protobuffer = optionsconst createPBBuffer makeData decode gameMessage = protobuffer const data = const messageQuery = const sendPB = async { try let buffer = await socket let msgBase = let msghead msgbody = msgBase console console catch error console }
License
this repo is released under the MIT License.