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
@@ -499,6 +516,11 @@ Component that renders WebSocket onError event handler for the specified program
499
516
500
517
501
518
519
+
### Returns
520
+
521
+
-**JSX.Element** - A Text component containing the onError handler code for the specified language.
522
+
523
+
502
524
503
525
### Example
504
526
@@ -525,6 +547,11 @@ Component that renders WebSocket onMessage event handler for the specified progr
525
547
526
548
527
549
550
+
### Returns
551
+
552
+
-**JSX.Element** - A Text component containing the onMessage handler code for the specified language.
553
+
554
+
528
555
529
556
### Example
530
557
@@ -553,6 +580,11 @@ Component that renders WebSocket onOpen event handler for the specified programm
553
580
554
581
555
582
583
+
### Returns
584
+
585
+
-**JSX.Element** - A Text component containing the onOpen handler code for the specified language.
586
+
587
+
556
588
557
589
### Example
558
590
@@ -742,6 +774,11 @@ Generates both static and instance methods for sending messages through WebSocke
742
774
743
775
744
776
777
+
### Returns
778
+
779
+
-**Array.<React.ReactNode>** - Array of Text components for static and non-static WebSocket send operation methods, or null if no send operations are provided.
* @param {Language} props.language - The target programming language.
124
124
* @param {Array<Object>} props.sendOperations - Array of send operations from AsyncAPI document.
125
125
* @param {string} props.clientName - The name of the client class.
126
+
* @returns {React.ReactNode[]|null} Array of Text components for static and non-static WebSocket send operation methods, or null if no send operations are provided.
0 commit comments