converting to string

This commit is contained in:
daniel muniz
2024-06-19 09:52:36 -03:00
parent 0d531a1182
commit a5416b6e2c
3 changed files with 1469 additions and 1469 deletions

View File

@@ -8,9 +8,9 @@ const categoryConverter = new CategoryConverterUseCase({categoriesMapping});
module.exports = async function app(domain){ module.exports = async function app(domain){
const category = await getCategory.execute(domain) const category = await getCategory.execute(domain)
console.log(category)
const categoryConverted = await categoryConverter.execute(category) const categoryConverted = await categoryConverter.execute(category)
console.log(categoryConverted)
return categoryConverted return categoryConverted
} }

View File

@@ -1,17 +1,17 @@
const dgram = require('dgram'); const dgram = require('dgram');
const client = dgram.createSocket('udp4'); const client = dgram.createSocket('udp4');
const message = 'fadsiojdsf'; const message = 'www.facebook.com';
// const serverHost = '34.116.211.192'; // const serverHost = '34.116.211.192';
// const serverPort = 3000; // const serverPort = 3000;
const serverHost = '209.97.181.89'; // const serverHost = '209.97.181.89';
const serverPort = 33333;
// const serverHost = 'localhost';
// const serverPort = 33333; // const serverPort = 33333;
const serverHost = 'localhost';
const serverPort = 33333;
client.send(message, 0, message.length, serverPort, serverHost, (err) => { client.send(message, 0, message.length, serverPort, serverHost, (err) => {
if (err) { if (err) {

File diff suppressed because it is too large Load Diff