feat: add 1.8.8 reflect & export io namespace

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-04-07 13:31:20 +08:00
parent d22b72f10a
commit 1c29a059d9
5 changed files with 53 additions and 5 deletions

View File

@ -5,11 +5,12 @@ import { attachForge } from './forge'
import { attachEvents } from './event'
let username = process.argv[2] || 'Mr_jtb'
let version = process.argv[3] || '1.12.2'
let client = createConnection('192.168.2.5', 25577, username)
function createConnection(host: string, port: number, username: string) {
let client = createClient({
version: '1.12.2',
version,
host,
port,
username,