serverless-es-proxy-logs
Advanced tools
Comparing version 3.0.7-rc1 to 3.0.7-rc2
{ | ||
"name": "serverless-es-proxy-logs", | ||
"version": "3.0.7-rc1", | ||
"version": "3.0.7-rc2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A Serverless plugin to transport logs to ElasticSearch", |
@@ -42,2 +42,3 @@ // v1.1.2 | ||
//socket data | ||
console.log('connecting to socket ...'); | ||
const socket = io(endpoint); | ||
@@ -50,2 +51,11 @@ socket.on('connect', () => { | ||
}); | ||
socket.on('connect_failed', function() { | ||
console.log("Sorry, there seems to be an issue with the connection!"); | ||
}); | ||
socket.on('error', function() { | ||
console.log('Connection failed'); | ||
}); | ||
socket.on('connect_error', () => { | ||
console.log('Error while connecting'); | ||
}); | ||
// post documents to the Amazon Elasticsearch Service | ||
@@ -52,0 +62,0 @@ // put(elasticsearchBulkPayload, function(error, success, statusCode, failedItems) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57025
758