WarpJS engine
Npm module
@warpjs/engine
https://www.npmjs.com/package/@warpjs/engine
Import
To use a WarpJS client in the JavaScript client, you have to import WarpJS engine first. The engine has to be initialize just once.
CommonJS (CJS)
require("@warpjs/engine");
ES Modules (ESM)
import "@warpjs/engine";
HTML script tag
Include the WarpJS engine directly in an HTML file:
<script src="https://cdn.scaledynamics.com/warp-engine/4.0.4/engine-web-prod.js" type="text/javascript"></script>
Pay attention to using the same
engine
version that you use to develop the Node.js server part. Please change the version in the CDN url. Find current version of WarpJS thanks to thenpx warp version
command.