MCPcopy Create free account
hub / github.com/dgreif/ring / sendMessage

Method sendMessage

packages/ring-client-api/location.ts:335–350  ·  view source on GitHub ↗
(message: {
    msg: MessageType
    datatype?: MessageDataType
    dst: string
    body?: any
    seq?: number
  })

Source from the content-addressed store, hash-verified

333 }
334
335 async sendMessage(message: {
336 msg: MessageType
337 datatype?: MessageDataType
338 dst: string
339 body?: any
340 seq?: number
341 }) {
342 const connection = await this.getConnection()
343 message.seq = this.seq++
344 connection.send(
345 JSON.stringify({
346 channel: 'message',
347 msg: message,
348 }),
349 )
350 }
351
352 async sendCommandToSecurityPanel(
353 commandType: string,

Callers 2

requestListMethod · 0.95
setInfoMethod · 0.45

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected