MCPcopy Index your code
hub / github.com/tinode/chat / SetWith

Method SetWith

server/store/types/types.go:967–969  ·  view source on GitHub ↗

SetWith sets other user for P2P subscriptions.

(with string)

Source from the content-addressed store, hash-verified

965
966// SetWith sets other user for P2P subscriptions.
967func (s *Subscription) SetWith(with string) {
968 s.with = with
969}
970
971// GetWith returns the other user for P2P subscriptions.
972func (s *Subscription) GetWith() string {

Callers 5

replyGetSubMethod · 0.95
TopicsForUserMethod · 0.95
TopicsForUserMethod · 0.95
TopicsForUserMethod · 0.95
TopicsForUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected