MCPcopy
hub / github.com/coder/websocket / publishMsgs

Method publishMsgs

internal/examples/chat/chat_test.go:222–230  ·  view source on GitHub ↗
(ctx context.Context, msgs map[string]struct{})

Source from the content-addressed store, hash-verified

220}
221
222func (cl *client) publishMsgs(ctx context.Context, msgs map[string]struct{}) error {
223 for m := range msgs {
224 err := cl.publish(ctx, m)
225 if err != nil {
226 return err
227 }
228 }
229 return nil
230}
231
232func (cl *client) nextMessage() (string, error) {
233 typ, b, err := cl.c.Read(context.Background())

Callers 1

Test_chatServerFunction · 0.80

Calls 1

publishMethod · 0.95

Tested by

no test coverage detected