
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@mean-expert/loopback-component-realtime
Advanced tools
The LoopBack Component that turns this great framework into a powerful real-time platform
A LoopBack Framework Component that provides publish events over WebSockets.
This module will supersedes the LoopBack Component PubSub and will implement multiple Real-Time functionalities like PubSub, IO and the new FireLoop Module.
$ npm install --save @mean-expert/{loopback-sdk-builder,loopback-component-realtime}
Update the server/component-config.json
as follows:
{
"loopback-component-explorer": {
"mountPath": "/explorer"
},
"@mean-expert/loopback-component-realtime": {
"debug": true,
"auth": true,
"driver": {
"name": "socket.io"
},
"modules": [
"IO",
"PubSub",
"FireLoop",
"WebRTCSignaler"
]
}
}
Update the server/model-config.json
as follows:
{
"mixins": [
"loopback/common/mixins",
"loopback/server/mixins",
"../common/mixins",
"./mixins",
"../node_modules/loopback-component-realtime/dist/mixins"
]
}
Finally update the file server/server.js
by editing the app.start
method as follow:
app.start = function() {
// start the web server
var server = app.listen(function() {
app.emit('started', server);
var baseUrl = app.get('url').replace(/\/$/, '');
console.log('Web server listening at: %s', baseUrl);
if (app.get('loopback-component-explorer')) {
var explorerPath = app.get('loopback-component-explorer').mountPath;
console.log('Browse your REST API at %s%s', baseUrl, explorerPath);
}
});
return server;
};
FireLoop Client for Angular 2 Applications are built in when generating your LoopBack SDK. Read the Following Instructions in order to automatically generate your software development kit.
FAQs
The LoopBack Component that turns this great framework into a powerful real-time platform
The npm package @mean-expert/loopback-component-realtime receives a total of 65 weekly downloads. As such, @mean-expert/loopback-component-realtime popularity was classified as not popular.
We found that @mean-expert/loopback-component-realtime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.