MCPcopy
hub / github.com/nats-io/nats.go / writeDirect

Method writeDirect

nats.go:2197–2204  ·  view source on GitHub ↗
(strs ...string)

Source from the content-addressed store, hash-verified

2195}
2196
2197func (w *natsWriter) writeDirect(strs ...string) error {
2198 for _, str := range strs {
2199 if _, err := w.w.Write([]byte(str)); err != nil {
2200 return err
2201 }
2202 }
2203 return nil
2204}
2205
2206func (w *natsWriter) flush() error {
2207 // If a pending buffer is set, we don't flush. Code that needs to

Callers 2

sendConnectMethod · 0.80
resendSubscriptionsMethod · 0.80

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected