Method: LiveKit::RoomServiceClient#send_data
- Defined in:
- lib/livekit/room_service_client.rb
#send_data(room:, data:, kind:, destination_sids: [], destination_identities: []) ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/livekit/room_service_client.rb', line 170 def send_data(room:, data:, kind:, destination_sids: [], destination_identities: [] ) self.rpc( :SendData, Proto::SendDataRequest.new( room: room, data: data, kind: kind, destination_sids: destination_sids, destination_identities: destination_identities, nonce: SecureRandom.random_bytes(16) ), headers:auth_header(video_grant: VideoGrant.new(roomAdmin: true, room: room)), ) end |