hgourvest / node-firebird

Pure javascript and asynchronous Firebird client for Node.js.
Mozilla Public License 2.0
257 stars 128 forks source link

feat: post_event implementation #325

Closed arthurbolsoni closed 7 months ago

arthurbolsoni commented 7 months ago

I implemented communication with the auxiliary port to receive post_event in the project. This is in node-firebird-dev, but the package is outdated.

It is currently a feature that I am using in production and would like to share for the project.

The pull request adds 3 new methods in the Connection class. A new class to handle the connection to the auxiliary port. A a new class to handle incoming events. Creation is done through the attachEvent method of the Database class.

Tests were also implemented.