MaxPayload returns the size limit that a message payload can have. This is set by the server configuration and delivered to the client upon connect.
()
| 6298 | // This is set by the server configuration and delivered to the client |
| 6299 | // upon connect. |
| 6300 | func (nc *Conn) MaxPayload() int64 { |
| 6301 | nc.mu.RLock() |
| 6302 | defer nc.mu.RUnlock() |
| 6303 | return nc.info.MaxPayload |
| 6304 | } |
| 6305 | |
| 6306 | // HeadersSupported will return if the server supports headers |
| 6307 | func (nc *Conn) HeadersSupported() bool { |
no outgoing calls