@nguniversal/socket-engine7.1.1 • Public • Published
Angular Universal Socket Engine
Framework and Platform agnostic Angular Universal rendering.
npm install @nguniversal/socket-engine @nguniversal/common --save
const socketEngine = ;// * NOTE :: leave this as require() since this file is built Dynamically from webpackconst AppServerModuleNgFactory LAZY_MODULE_MAP = ;socketEngine;
This will the socket engine which internally hosts a TCP Socket server.
The default port is
9090 and host of
You may want to leave this as a plain
.js file since it is so simple and to make deploying it easier, but it can be easily transpiled from Typescript.
Your client can be whatever language, framework or platform you like.
As long as it can connect to a TCP Socket (which all frameworks can) then you're good to go.
This example will use JS for simplicity