-
Notifications
You must be signed in to change notification settings - Fork 743
Open
Description
Thank you for your video!
I do application on nodejs what request some data on external server and relay them to some external client via TCP.
Do you have an idea how to make promise from the code like:
const Market = require('some-api');
myMarket = new Market();
myMarket.websockets.trades(request[1], (trades, error) => {
if (error) {
send to external client(error);
}
if(this.streamStatuse === 1) {
send to external client(JSON.stringify(['TR', this.getTimeString(), trades]));
}
});Metadata
Metadata
Assignees
Labels
No labels