UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

48 lines (38 loc) 1.02 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2020 Christian Boulanger License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Christian Boulanger (cboulanger) ************************************************************************ */ /** * A JSON-RPC v2.0 notification object * @see https://www.jsonrpc.org/specification#request_object */ qx.Class.define("qx.io.jsonrpc.protocol.Notification", { extend: qx.io.jsonrpc.protocol.Message, properties: { method: { check: "String", nullable: false }, params: { check: "Object", nullable: true, init: null } }, /** * Notification constructor * @param {String} method * @param {Object?} params */ construct(method, params = null) { super(); this.set({ method, params }); } });