converting to string
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
Reference in New Issue
Block a user