angular-socket-io | Socket.IO component for AngularJS | Socket library
kandi X-RAY | angular-socket-io Summary
kandi X-RAY | angular-socket-io Summary
Socket.IO component for AngularJS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a mock socket object .
angular-socket-io Key Features
angular-socket-io Examples and Code Snippets
Community Discussions
Trending Discussions on angular-socket-io
QUESTION
My client wants to have an OPs Engineer run the Node Red side of the house, but all operations support staff are to use a Single Page App (And never ever touch Node Red), so Part of me was thinking that a sample uibuilder page will create a socket, but if i have an angular app exist and that socket too exists, I can get all the data I need without hacking together code. As they keep extending the use cases, the ui builder is switching from simple screen components to lists, forms, loaders, etc in 1 endpoint, with layer, lots of inline classes, and no organization.
I have a sample UiBuilder for NodeRed called "launch" which when working through some samples has a socket I can listen to. I thought that it would be useful if i could create a different app, which also listens to this socket. For every Message recieved, if it doesnt exist in a list, it will add it to the list and hen from there we will start user stories.
I figured to implement socket in an Angular App, through a service I created. I created a simple client-server relationship with some demos found online, but I am now trying to link it to the Node Red uibuilder launch which exists.
I thought it was going to be as simple as updating the url or path but that seems to not work.
Here is a sample file I was working with:
...ANSWER
Answered 2021-Feb-28 at 13:51You can create an Angular SPA using uibuilder.
uibuilder will extend the Node-RED web service to serve up your SPA and any additional front-end libraries that you choose to install.
In addition, it creates a websocket connection between Node-RED and your SPA.
So you don't need any other external web or websocket resources, uibuilder manages all of that for you.
Having said that, it is possible to run a uibuilder front-end app from a different webserver if you really need to. It isn't particularly well tested and it does require you to add some configuration manually. In this case, uibuilder will still create the websocket connection and manage it for you.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-socket-io
Make sure the Socket.IO client lib is loaded. It's often served at /socket.io/socket.io.js.
Include the socket.js script provided by this component into your app.
Add btford.socket-io as a module dependency to your app.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page