createChannelListener

Creates a new PgChannelListener backed by a dedicated database connection.

The returned listener holds an open connection until PgChannelListener.close is called. Always release the listener via kotlin.io.use or an explicit PgChannelListener.close call.

Return

A new PgChannelListener ready to subscribe to channels.