MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Exit

Method Exit

IceFireDB-PubSub/pkg/ppubsub/pubsubStore.go:306–313  ·  view source on GitHub ↗

A method of PubSub that updates the chat room by subscribing to the new topic

()

Source from the content-addressed store, hash-verified

304// A method of PubSub that updates the chat
305// room by subscribing to the new topic
306func (cr *PubSub) Exit() {
307 defer cr.pscancel()
308
309 // Cancel the existing subscription
310 cr.psub.Cancel()
311 // Close the topic handler
312 cr.pstopic.Close()
313}
314
315// A method of PubSub that updates the chat user name
316func (cr *PubSub) UpdateUser(username string) {

Callers 2

mainFunction · 0.45
startFunction · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected