func (c *Conn) Notify(ctx context.Context, method string, params interface{}) (err error) {
	notify, err := NewNotification(method, params)
	if err != nil {
		return fmt.Errorf("marshaling notify parameters: %v", err)
	}
	ctx, done := event.Start(ctx, method,
		tag.Method.Of(method),
		tag.RPCDirection.Of(tag.Outbound),
	)
	defer func() {
		recordStatus(ctx, err)
		done()
	}()

	event.Metric(ctx, tag.Started.Of(1))
	n, err := c.write(ctx, notify)
	event.Metric(ctx, tag.SentBytes.Of(n))
	return err
}
// Notify is called to send a notification request over the connection.
// It will return as soon as the notification has been sent, as no response is
// possible.
Notify is called to send a notification request over the connection.
It will return as soon as the notification has been sent, as no response is
possible.
// Notify is called to send a notification request over the connection . // It will return as soon as the notification has been sent as no response is // possible .
func (c *Conn) Notify(ctx context.Context, method string, params interface{}) (err error) {
	notify, err := NewNotification(method, params)
	if err != nil {
		return fmt.Errorf("marshaling notify parameters: %v", err)
	}
	ctx, done := event.Start(ctx, method,
		tag.Method.Of(method),
		tag.RPCDirection.Of(tag.Outbound),
	)
	defer func() {
		recordStatus(ctx, err)
		done()
	}()
	event.Metric(ctx, tag.Started.Of(1))
	n, err := c.write(ctx, notify)
	event.Metric(ctx, tag.SentBytes.Of(n))
	return err
}
func ( c * Conn ) Notify ( ctx context . Context , method string , params interface { } ) ( err error ) { notify , err := NewNotification ( method , params ) if err != nil { return fmt . Errorf ( " " , err ) } ctx , done := event . Start ( ctx , method , tag . Method . Of ( method ) , tag . RPCDirection . Of ( tag . Outbound ) , ) defer func ( ) { recordStatus ( ctx , err ) done ( ) } ( ) event . Metric ( ctx , tag . Started . Of ( 1 ) ) n , err := c . write ( ctx , notify ) event . Metric ( ctx , tag . SentBytes . Of ( n ) ) return err }
Notify is called to send a notification request over the connection.
Notify is called to send a notification request over the connection .