Skip to content

Commit c393774

Browse files
committed
readme
1 parent c56be2f commit c393774

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ The participant who implements the method and will receive its calls must first
141141

142142
```python
143143
@room.local_participant.register_rpc_method("greet")
144-
async def handle_greet(request_id: str, caller_identity: str, payload: str, response_timeout: float):
145-
print(f"Received greeting from {caller_identity}: {payload}")
146-
return f"Hello, {caller_identity}!"
144+
async def handle_greet(data: RpcInvocationData):
145+
print(f"Received greeting from {data.caller_identity}: {data.payload}")
146+
return f"Hello, {data.caller_identity}!"
147147
```
148148

149149
In addition to the payload, your handler will also receive `response_timeout`, which informs you the maximum time available to return a response. If you are unable to respond in time, the call will result in an error on the caller's side.

0 commit comments

Comments
 (0)