126 bool Connect(
const std::string &url,
const std::string &token,
186 void registerTextStreamHandler(
const std::string &topic,
187 TextStreamHandler handler);
193 void unregisterTextStreamHandler(
const std::string &topic);
212 void registerByteStreamHandler(
const std::string &topic,
213 ByteStreamHandler handler);
219 void unregisterByteStreamHandler(
const std::string &topic);
232 mutable std::mutex lock_;
233 ConnectionState connection_state_ = ConnectionState::Disconnected;
236 std::shared_ptr<FfiHandle> room_handle_;
237 std::unique_ptr<LocalParticipant> local_participant_;
238 std::unordered_map<std::string, std::shared_ptr<RemoteParticipant>>
239 remote_participants_;
241 std::unordered_map<std::string, TextStreamHandler> text_stream_handlers_;
242 std::unordered_map<std::string, ByteStreamHandler> byte_stream_handlers_;
243 std::unordered_map<std::string, std::shared_ptr<TextStreamReader>>
244 text_stream_readers_;
245 std::unordered_map<std::string, std::shared_ptr<ByteStreamReader>>
246 byte_stream_readers_;
248 std::unique_ptr<E2EEManager> e2ee_manager_;
253 void OnEvent(
const proto::FfiEvent &event);