@@ -202,9 +202,8 @@ class ConnectionService extends Base {
202202 * @param {String } method The RPC method name.
203203 * @param {Object } [params={}] The RPC parameters.
204204 * @returns {Promise<any> } Resolves with the RPC result or rejects with an error.
205- * @private
206205 */
207- # call( sessionId , method , params = { } ) {
206+ call ( sessionId , method , params = { } ) {
208207 return new Promise ( ( resolve , reject ) => {
209208 const ws = this . sessions . get ( sessionId ) ;
210209
@@ -215,7 +214,7 @@ class ConnectionService extends Base {
215214 const lastId = Array . from ( this . sessions . keys ( ) ) . pop ( ) ;
216215 logger . warn ( `No sessionId provided. Defaulting to ${ lastId } ` ) ;
217216 // Recursive call with the found ID
218- return this . # call( lastId , method , params ) . then ( resolve ) . catch ( reject ) ;
217+ return this . call ( lastId , method , params ) . then ( resolve ) . catch ( reject ) ;
219218 }
220219 logger . error ( `Session not found. Requested: ${ sessionId } , Active: ${ Array . from ( this . sessions . keys ( ) ) . join ( ', ' ) } ` ) ;
221220 return reject ( new Error ( `Session not found: ${ sessionId || 'No active sessions' } ` ) ) ;
@@ -261,62 +260,14 @@ class ConnectionService extends Base {
261260 }
262261 }
263262
264- /**
265- * Retrieves a property from a component by its ID.
266- * @param {Object } opts The options object.
267- * @param {String } opts.id The component ID.
268- * @param {String } opts.property The property name to retrieve.
269- * @param {String } [opts.sessionId] The target session ID.
270- * @returns {Promise<any> } The value of the property.
271- */
272- async getComponentProperty ( { id, property, sessionId} ) {
273- return await this . #call( sessionId , 'get_component_property' , { id, property} )
274- }
275-
276- /**
277- * Retrieves the full component tree of the application.
278- * @param {Object } opts The options object.
279- * @param {Number } [opts.depth] The depth limit.
280- * @param {String } [opts.rootId] Optional root component ID.
281- * @param {String } [opts.sessionId] The target session ID.
282- * @returns {Promise<Object> } The component tree structure.
283- */
284- async getComponentTree ( { depth, rootId, sessionId} ) {
285- return await this . #call( sessionId , 'get_component_tree' , { depth, rootId} )
286- }
287-
288- /**
289- * Retrieves the VDOM tree of a component.
290- * @param {Object } opts The options object.
291- * @param {Number } [opts.depth] The depth limit.
292- * @param {String } [opts.rootId] Optional root component ID.
293- * @param {String } [opts.sessionId] The target session ID.
294- * @returns {Promise<Object> } The VDOM tree structure.
295- */
296- async getVdomTree ( { depth, rootId, sessionId} ) {
297- return await this . #call( sessionId , 'get_vdom_tree' , { depth, rootId} )
298- }
299-
300- /**
301- * Retrieves the VNode tree of a component.
302- * @param {Object } opts The options object.
303- * @param {Number } [opts.depth] The depth limit.
304- * @param {String } [opts.rootId] Optional root component ID.
305- * @param {String } [opts.sessionId] The target session ID.
306- * @returns {Promise<Object> } The VNode tree structure.
307- */
308- async getVnodeTree ( { depth, rootId, sessionId} ) {
309- return await this . #call( sessionId , 'get_vnode_tree' , { depth, rootId} )
310- }
311-
312263 /**
313264 * Retrieves the state of the DragCoordinator.
314265 * @param {Object } opts
315266 * @param {String } [opts.sessionId]
316267 * @returns {Promise<Object> }
317268 */
318269 async getDragState ( { sessionId} ) {
319- return await this . # call( sessionId , 'get_drag_state' , { } )
270+ return await this . call ( sessionId , 'get_drag_state' , { } )
320271 }
321272
322273 /**
@@ -377,21 +328,9 @@ class ConnectionService extends Base {
377328 * @returns {Promise<void> }
378329 */
379330 async reloadPage ( { sessionId} ) {
380- return await this . # call( sessionId , 'reload_page' , { } )
331+ return await this . call ( sessionId , 'reload_page' , { } )
381332 }
382333
383- /**
384- * Sets a property on a component by its ID.
385- * @param {Object } opts The options object.
386- * @param {String } opts.id The component ID.
387- * @param {String } opts.property The property name to set.
388- * @param {* } opts.value The value to set.
389- * @param {String } [opts.sessionId] The target session ID.
390- * @returns {Promise<void> }
391- */
392- async setComponentProperty ( { id, property, value, sessionId} ) {
393- return await this . #call( sessionId , 'set_component_property' , { id, property, value} )
394- }
395334}
396335
397336export default Neo . setupClass ( ConnectionService ) ;
0 commit comments