Skip to content

Using native bindings causes difference in notification object #1045

Description

@makkeu

When listening notifications, result message is different depending on what binding is used. With native bindings, message doesn't have name, length, or processId properties. Tested with version 4.5.1 and 5.0.0. pg-native version 1.10.0.

client.on('notification', function(msg) {
  // with js bindings msg contains name, length, processId, channel, payload
  // with native bindings msg only contains channel and payload
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions