GetPoolHook creates a pool hook with a custom dialer.
(baseDialer func(context.Context, string, string) (net.Conn, error))
| 130 | |
| 131 | // GetPoolHook creates a pool hook with a custom dialer. |
| 132 | func (hm *Manager) InitPoolHook(baseDialer func(context.Context, string, string) (net.Conn, error)) { |
| 133 | poolHook := hm.createPoolHook(baseDialer) |
| 134 | hm.pool.AddPoolHook(poolHook) |
| 135 | } |
| 136 | |
| 137 | // setupPushNotifications sets up push notification handling by registering with the client's processor. |
| 138 | func (hm *Manager) setupPushNotifications() error { |