btford / btford/angular-socket-io
How can i change the url at runtime?
Open
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Hi to all!
In my nodejs server i have two routes:
``` javascript
app.get('/', function(req, res){
res.sendFile(__dirname + '/test.html');
});
app.get('/test', function(req, res){
console.log("Test PAth");
});
```
My factory is:
``` javascript
factory('socket', function (socketFactory) {
var socket = socketFactory({
ioSocket: io('http://servertest:3000')
});
});
```
In my controllers i wish to change to http://servertest:3000/test at runtime.
Is it Possible?
Thanks!
Massimo
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.