I am using standard node.js sdk to log an event with the following code:
// ES5 Syntax<br />const Amplitude = require('@amplitude/node');<br />// ES6 Syntax<br />import * as Amplitude from '@amplitude/node';<br /><br />var client = Amplitude.init(<AMPLITUDE_API_KEY>);<br />client.logEvent({<br /> event_type: 'Node.js Event',<br /> user_id: 'datamonster@gmail.com',<br /> location_lat: 37.77,<br /> location_lng: -122.39,<br /> ip: '127.0.0.1',<br /> event_properties: {<br /> keyString: 'valueString',<br /> keyInt: 11,<br /> keyBool: true<br /> }<br />});<br /><br />// Send any events that are currently queued for sending.<br />// Will automatically happen on the next event loop.<br />client.flush();

but though my code is already executed, it still showing listening. can some body help me out with this.