Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PingPong Envelope Init
import { EnvelopeBusMessage } from "@kogito-tooling/envelope-bus/dist/api";
import { init } from "ping-pong-view/dist/envelope";
import { PingPongReactImplFactory } from "ping-pong-view-react";
container: document.getElementById("envelope-app")!,
bus: {
postMessage<D, Type>(message: EnvelopeBusMessage<D, Type>, targetOrigin?: string, transfer?: any) {
window.parent.postMessage(message, "*", transfer);
pingPongViewFactory: new PingPongReactImplFactory(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment