Repository navigation
v3.0.1
Major Changes
MCBE-IPC now implements the MCBE-IPC Packet Standard (MIPS) for communcation, with encoding version mcbe-ipc:v3.
Refer to Pre-Release v3.0.0 for more information about MCBE-IPC v3.0.1 structure and encoding.
Other
The DirectIPC communication system has been moved into an extension file, to reduce file sizes for the base version of MCBE-IPC. If you wish to continue using the ConnectionManager and Connections, you should download the direct.ipc.js and direct.ipc.d.ts files, or, if you are using TypeScript, the direct.ipc.ts file. Simply put the file/s into the same folder as the main ipc.js/ipc.ts file, and then import DirectIPC to use in your scripts.
Example:
import IPC, { PROTO } from './IPC/ipc'
import DirectIPC from './IPC/direct.ipc'
IPC.send('message', PROTO.String, 'Message')
const main = new DirectIPC.ConnectionManager('main')
main.connect('sub').then(connection => {
connection.send('message', PROTO.String, 'Message')
})The PROTO module is also available as a standalone file, for those who want to implement their own IPC, while still adhering to the MIPS. This is available as proto.js and proto.d.ts, or proto.ts, if you're using TypeScript.
Full Changelog: v3.0.0...v3.0.1