You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance error handling with additional context data
Updated JsonRpcErrorException instances to include relevant context data for better debugging. Adjusted test cases accordingly to validate the new data fields. Added detailed comments to improve code clarity for message handling methods.
@@ -209,7 +209,12 @@ private function handleNotificationProcess(string $clientId, NotificationData $n
209
209
}
210
210
211
211
/**
212
-
* @throws Exception
212
+
* Pushes a message to a specified client.
213
+
*
214
+
* @param string $clientId The unique identifier of the client to push the message to.
215
+
* @param array|JsonRpcResultResource|JsonRpcErrorResource $message The message to be pushed to the client, either as an array or an instance of JsonRpcResultResource/JsonRpcErrorResource.
216
+
*
217
+
* @throws Exception If transport is unable to push the message to client
0 commit comments