Cannot get events from FreeSwitch with modesl

I use npm package - modesl in order to connect Node JS app to FreeSwitch and interact with it. Connection is establishes and 'events' command returns OK. With below code I am trying to get events from FreeSwitch but I can't get any output. Note: FS part is okay. I can get events with fs_cli.

const Main = async () => {
    const connection = new esl.Connection("IP", "PORT", "PASSWORD", function () {"plain", "all", (resp) => {
            while (true) {
                connection.recvEventTimed(10, (e) => {


I would be appreciate for any help)

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum