Skip to content

Commit 1abd005

Browse files
bcherrysvajunas-budrys
authored andcommitted
Fix inconsistency in RPC doc (livekit#1417)
1 parent f7796ee commit 1abd005

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/room/Room.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
311311

312312
/**
313313
* Establishes the participant as a receiver for calls of the specified RPC method.
314-
* Will overwrite any existing callback for the same method.
315314
*
316315
* @param method - The name of the indicated RPC method
317316
* @param handler - Will be invoked when an RPC request for this method is received
318317
* @returns A promise that resolves when the method is successfully registered
319-
* @throws {Error} if the handler for a specific method has already been registered already
318+
* @throws {Error} If a handler for this method is already registered (must call unregisterRpcMethod first)
320319
*
321320
* @example
322321
* ```typescript

0 commit comments

Comments
 (0)