Basically how can i do this in WIXcode ?
// start the server
server.listen(config.server.port, () => {
console.log(server started on port ${config.server.port}
);
});
Basically how can i do this in WIXcode ?
// start the server
server.listen(config.server.port, () => {
console.log(server started on port ${config.server.port}
);
});
You can’t. The underlying server and infrastructure is isolated.
I’m trying to connect a payment processor that will usually(in nodeJS) reply to port 443 … so you’re saying that i cant connect that API with wix ?
@martinrand You can use the wix-fetch API for interfacing with and external API. See the article Wix Code: How to Access 3rd-Party Services with the Fetch API and the wix-fetch API docs .
I’m already going that way … it just seems weird to leave so much stuff out of the code when using fetch …
@martinrand You can always submit a feature request to make it more complicated.
BTW - you can find a number of examples of API access on the Examples Index Page .