UNPKG

endpointjs

Version:

Endpoint.js enables modules within a web application to discover and use each other, whether that be on the same web page, other browser windows and tabs, iframes, servers and web workers in a reactive way by providing robust discovery, execution and stre

25 lines (22 loc) 674 B
<html> <head></head> <body> <script type="text/javascript"> window.endpointLogLevel = 'none'; </script> <script src="../build/endpoint.demo.js" type="text/javascript"></script> <script type="text/javascript"> var windowLinkConfig = { linkId: 'link-8283', type: 'window', settings: { origin: 'http://localhost:8283', external: true } }; var link = window.endpoint.getConfiguration().addLink(windowLinkConfig); link.announceWindow(window.parent); window.endpoint.getConfiguration().createBridge(['default-worker', 'default-tab', 'link-8283']); </script> </body> </html>