app/ws/RadioTower.js
// sends a message to a ws with a specific session id
sends a message to a ws with a specific session id
sends a message to a ws with a specific session id
message( message, raw, senderClientId ) {
      winston.debug( `✉️ message to ${message.recipientId} from ${senderClientId}, ${message.args}` )
      if ( !message.recipientId ) { return winston.error( 'No recipientId provided.' ) }
      let recipient = ClientStore.clients.find( client => client.clientId === message.recipientId )
      if ( !recipient ) { return winston.error( `No ws with ${message.recipientId} found on pid ${process.pid}` ) }
      recipient.send( raw )
    }
message ( message , raw , senderClientId ) { winston . debug ( ` ss age.rec i pientId} fr o nd erClientId}, $ { ss age.arg s }` ) if ( ! message . recipientId ) { return winston . error ( 'No recipientId provided.' ) } let recipient = ClientStore . clients . find ( client => client . clientId === message . recipientId ) if ( ! recipient ) { return winston . error ( ` ${ message . recipientId } ${ process . pid } ` ) } recipient . send ( raw ) }
sends a message to a ws with a specific session id
sends a message to a ws with a specific session id