All Questions
123
questions
1
vote
1
answer
66
views
Angular js, not showing socket data at Table (ng-repeat)
div(ng-controller="dashController")
nav.navbar.navbar-expand-sm.navbar-dark.fixed-top
.container
img(src='../images/Dashboard.png', alt='logo', width='180px')
ul.navbar-nav
...
1
vote
1
answer
2k
views
Ngx-socket-io Package is not work in Angular.js
I was trying to use the ngx-socket-io package, which does not work in Angular.js. Is there an alternative package I can use that will work in Angular?
Moddule.js:
import { SocketIoModule, ...
1
vote
2
answers
1k
views
Can I send back a function reference as a response to an api request?
Can I send back a function reference or function as such as a response to api call from an express server and the front-end framework is angular js?
I tried to send the response object like: {per: ...
2
votes
0
answers
12k
views
Tunneling socket could not be established, statusCode=503 , ECONNRESET
We're using an Angular JS application. For a particular user login, we're seeing the following error stack trace in the node server logs.
Login API invoked for xxxxxxxxx
Requesting REST URL FOR ...
0
votes
1
answer
1k
views
how to get realtime data in nodejs mongodb and angularjs using SocketsJs?
i have a nodejs server which is getting list of a collection from mongodb . Here is its code . since am new to sockets so ..
const express = require("express");
const app = express();
const http = ...
1
vote
1
answer
2k
views
Socket.io event listener called multiple times even though it's emitted only once from my node js server
So I have a custom socket event listener called newMessage on my AngularJS 1.x client.
Now to help me ask the question better, please think of sessions as a chat we had in a room and going out of the ...
0
votes
0
answers
247
views
Socket only emits once
The code below only emits the data only once. I am not sure it even emits it once as I believe the data is not being sent correctly from frontend(angular 2) to the backend(nodeJs).
frontend code of ...
1
vote
1
answer
987
views
Socket events are firing multiple times on switching the states in AngularJS application
I am connecting Angular JS application having multiple states(Routes) with Node server(Socket) running on back-end. When I visit some other state and come back to the state where socket code is ...
0
votes
1
answer
2k
views
Node and Angular socket error in browser console
I am using Node(server) + Angular(client) to implement socket in my application.
Angular bower.json socket components : "angular-socket-io":
"^0.7.0","socket.io-client": "^1.7.2",
Node js ...
0
votes
0
answers
162
views
ReferenceError: io is not defined - when socket server is different than localhost
A lot of questions with same title but this one is different which I could not find in existing stack overflow collection.
I have a socket server at different host and I want to use this socket ...
0
votes
3
answers
1k
views
Socket is not listening using nodejs
Thanks for help in advance. I am getting following state from my console See Server running console log. Below Snippet is my app.js code where express and node server running. If you see my socket ...
0
votes
1
answer
132
views
How to properly store chats between two users [closed]
I am currently working on a private chat between two users using NodeJS, AngularJS, MySQL and Socket.IO. I want to somehow save the chats so that you don't only see the new chat you are writing that ...
0
votes
0
answers
128
views
Socket.io and Angular.js chat script TimeOut
I am trying to get my chat script to work I have moved to a VPS thinking that should solve any missing extensions but I have the same problem.
A user logs into the website and can then load the chat ...
0
votes
2
answers
2k
views
Socket.emit cannot trigger socket.on
I am using Socket.io to create a simple application. To test if the client side and the server side are working correctly I use socket.emit to send message to the server and socket.on to write the ...
1
vote
0
answers
438
views
Send Notification properly using Socket.io Redis server
OBJECTIVE: When post is added to perticular channel send notification to all connected subscribed users for that channel.
Relational Database tables over view: Post, Channels, Users, Channels_Users
...