UNPKG

@unparallel/smartclide-frontend-comm

Version:

This module builds a message according to the protocol established for the communication between the SmartCLIDE IDE frontend and its components.

23 lines (20 loc) 560 B
/** * @license * Copyright (C) 2022 Unparallel Innovation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 */ import {messageTypes, buildMessage} from "./index.js"; try{ let data = buildMessage(messageTypes.COMM_START_REPLY, { token: "token", serviceID: "serviceID" }) console.log(JSON.stringify(data, undefined, 4)) }catch (e) { console.log(e) }