Skip to content

Commit

Permalink
added jsa.SendMsg for cherry-picked MQTT code
Browse files Browse the repository at this point in the history
  • Loading branch information
levb authored and wallyqs committed Jun 21, 2024
1 parent eb022ef commit f4e9c50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,13 @@ func (jsa *mqttJSA) createDurableConsumer(cfg *CreateConsumerRequest) (*JSApiCon
return ccr, ccr.ToError()
}

func (jsa *mqttJSA) sendMsg(subj string, msg []byte) {
if subj == _EMPTY_ {
return
}
jsa.sendq.push(&mqttJSPubMsg{subj: subj, msg: msg, hdr: -1})
}

// if noWait is specified, does not wait for the JS response, returns nil
func (jsa *mqttJSA) deleteConsumer(streamName, consName string, noWait bool) (*JSApiConsumerDeleteResponse, error) {
subj := fmt.Sprintf(JSApiConsumerDeleteT, streamName, consName)
Expand Down

0 comments on commit f4e9c50

Please sign in to comment.