route user when browser is refreshed (socket.io)
up vote
1
down vote
favorite
Hello how can i route the user when the browser is refreshed? before refreshing the user is connected to the node server via socket.io. I want the user to route to home page then cut its connection.
socket.on('disconnect' , function(){
})
the disconnect event seems not to be firing.
A help would be so much appreciated. Thank you so much.
javascript node.js socket.io angular-socket-io
add a comment |
up vote
1
down vote
favorite
Hello how can i route the user when the browser is refreshed? before refreshing the user is connected to the node server via socket.io. I want the user to route to home page then cut its connection.
socket.on('disconnect' , function(){
})
the disconnect event seems not to be firing.
A help would be so much appreciated. Thank you so much.
javascript node.js socket.io angular-socket-io
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Hello how can i route the user when the browser is refreshed? before refreshing the user is connected to the node server via socket.io. I want the user to route to home page then cut its connection.
socket.on('disconnect' , function(){
})
the disconnect event seems not to be firing.
A help would be so much appreciated. Thank you so much.
javascript node.js socket.io angular-socket-io
Hello how can i route the user when the browser is refreshed? before refreshing the user is connected to the node server via socket.io. I want the user to route to home page then cut its connection.
socket.on('disconnect' , function(){
})
the disconnect event seems not to be firing.
A help would be so much appreciated. Thank you so much.
javascript node.js socket.io angular-socket-io
javascript node.js socket.io angular-socket-io
asked Nov 16 at 23:43
Chris Manuel
62
62
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I cannot comment, sorry - where do you setup this event listener? Is your socket
coming from io.on('connection', function(socket) {...}
?
New contributor
yes thats where my socket are coming from.
– Chris Manuel
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I cannot comment, sorry - where do you setup this event listener? Is your socket
coming from io.on('connection', function(socket) {...}
?
New contributor
yes thats where my socket are coming from.
– Chris Manuel
yesterday
add a comment |
up vote
0
down vote
I cannot comment, sorry - where do you setup this event listener? Is your socket
coming from io.on('connection', function(socket) {...}
?
New contributor
yes thats where my socket are coming from.
– Chris Manuel
yesterday
add a comment |
up vote
0
down vote
up vote
0
down vote
I cannot comment, sorry - where do you setup this event listener? Is your socket
coming from io.on('connection', function(socket) {...}
?
New contributor
I cannot comment, sorry - where do you setup this event listener? Is your socket
coming from io.on('connection', function(socket) {...}
?
New contributor
New contributor
answered 2 days ago
Khalt
212
212
New contributor
New contributor
yes thats where my socket are coming from.
– Chris Manuel
yesterday
add a comment |
yes thats where my socket are coming from.
– Chris Manuel
yesterday
yes thats where my socket are coming from.
– Chris Manuel
yesterday
yes thats where my socket are coming from.
– Chris Manuel
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53346792%2froute-user-when-browser-is-refreshed-socket-io%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown