Comments (9)
hi,
I'm not sure what the close method would do, could you detail?
I'm guessing you are using the default configuration, which tries to open the port 80 to expose the XMLRPC server that IFTTT will hit. Since you are getting the error EADDRINUSE
, this port must be already taken on your host, so you can change the configuration as following:
...
var params = {
...
server: {
host: 'localhost',
path: '/xmlrpc.php',
port: <choose a port number here>
}
};
server = iftttWebHook(params);
from ifttt-wordpress-webhook.
No, i'm not using default configuration.
The problem is in that node-red will reinit each node after redeploy the
flows and each node should close all the ports/devices. So, i need close
xmlrpc server when node-red this.on('close', is invoked.
Without it i'm getting second instance of xmltpc server on same port.
17 июня 2015 г. 18:30 пользователь "Florent" [email protected]
написал:
hi,
I'm not sure what the close method would do, could you detail?
I'm guessing you are using the default configuration, which tries to open
the port 80 to expose the XMLRPC server that IFTTT will hit. Since you are
getting the error EADDRINUSE, this port must be already taken on your
host, so you can change the configuration as following:...var params = {
...
server: {
host: 'localhost',
path: '/xmlrpc.php',
port:
}
};server = iftttWebHook(params);
—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from ifttt-wordpress-webhook.
Got it.
The instance returned by iftttWebHook
helper is a node-xmlrpc
server instance, which implements the close method. You should be able to simply call server.close()
on node-red close event.
from ifttt-wordpress-webhook.
Im using 3000 port to bind and node-red use 1883 port itself.
Everything is fine after first deploy, but port is keeping open after
second deploy and second instance of ifttt-wordpress-webhook will bind same
port.
I need to have posibility to stop port listening.
17 июня 2015 г. 18:30 пользователь "Florent" [email protected]
написал:
hi,
I'm not sure what the close method would do, could you detail?
I'm guessing you are using the default configuration, which tries to open
the port 80 to expose the XMLRPC server that IFTTT will hit. Since you are
getting the error EADDRINUSE, this port must be already taken on your
host, so you can change the configuration as following:...var params = {
...
server: {
host: 'localhost',
path: '/xmlrpc.php',
port:
}
};server = iftttWebHook(params);
—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from ifttt-wordpress-webhook.
did you try my suggestion above?
from ifttt-wordpress-webhook.
Not yet.
Y have no idea how to do this.
17 июня 2015 г. 23:15 пользователь "Florent" [email protected]
написал:
did you try my suggestion above <#14e03297b62af86b_issuecomment-112930443>
?—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from ifttt-wordpress-webhook.
basically something like this:
...
server = iftttWebHook(params);
...
nodeRed.on('close', function() {
server.close();
});
from ifttt-wordpress-webhook.
i'm getting
18 Jun 09:27:06 - [error] [ifttt:d5935730.9bbb18] TypeError: Object function (params) {
var handler, method, methodsHandlers, server, serverConfig;
if (params == null) {
params = {};
}
serverConfig = assign(config.server, params.server);
debug('Initializing XMLRPC server with following config:', serverConfig);
server = xmlrpc.createServer(serverConfig);
methodsHandlers = assign(handlers(params), params.handlers);
for (method in methodsHandlers) {
handler = methodsHandlers[method];
debug("Binding following handler to XMLRPC server method `" + method + "`:", handler);
server.on(method, handler);
}
return server;
} has no method 'close'
But i'm seeing coffeescript for the first time.
from ifttt-wordpress-webhook.
Did you see https://ifttt.com/maker ?
No more needed to look like wordpress!!
from ifttt-wordpress-webhook.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ifttt-wordpress-webhook.