MCPcopy
hub / github.com/TarsCloud/TarsGo / GetCloseMsg

Method GetCloseMsg

tars/tarsprotocol.go:212–218  ·  view source on GitHub ↗

GetCloseMsg return a package to close connection

()

Source from the content-addressed store, hash-verified

210
211// GetCloseMsg return a package to close connection
212func (s *Protocol) GetCloseMsg() []byte {
213 rspPackage := requestf.ResponsePacket{}
214 rspPackage.IVersion = basef.TARSVERSION
215 rspPackage.IRequestId = 0
216 rspPackage.SResultDesc = reconnectMsg
217 return s.rsp2Byte(&rspPackage)
218}
219
220// DoClose be called when close connection
221func (s *Protocol) DoClose(ctx context.Context) {

Callers

nothing calls this directly

Calls 1

rsp2ByteMethod · 0.95

Tested by

no test coverage detected