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
<p>If an error occurs trying to transform <code>items</code> into their socket representation, a <code><ahref="../Enums/SocketClientEvent.html#/s:FO8SocketIO17SocketClientEvent5errorFMS0_S0_">SocketClientEvent.error</a></code>
252
+
will be emitted. The structure of the error data is <code>[ackNum, items, theError]</code></p>
Copy file name to clipboardExpand all lines: docs/Classes/SocketIOClient.html
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -733,6 +733,9 @@ <h4>Declaration</h4>
733
733
<divclass="abstract">
734
734
<p>Send an event to the server, with optional data items.</p>
735
735
736
+
<p>If an error occurs trying to transform <code>items</code> into their socket representation, a <code><ahref="../Enums/SocketClientEvent.html#/s:FO8SocketIO17SocketClientEvent5errorFMS0_S0_">SocketClientEvent.error</a></code>
737
+
will be emitted. The structure of the error data is <code>[eventName, items, theError]</code></p>
738
+
736
739
</div>
737
740
<divclass="declaration">
738
741
<h4>Declaration</h4>
@@ -852,6 +855,9 @@ <h4>Parameters</h4>
852
855
<p><strong>NOTE</strong>: It is up to the server send an ack back, just calling this method does not mean the server will ack.
853
856
Check that your server’s api will ack the event being sent.</p>
854
857
858
+
<p>If an error occurs trying to transform <code>items</code> into their socket representation, a <code><ahref="../Enums/SocketClientEvent.html#/s:FO8SocketIO17SocketClientEvent5errorFMS0_S0_">SocketClientEvent.error</a></code>
859
+
will be emitted. The structure of the error data is <code>[eventName, items, theError]</code></p>
<p>If you wish to remove a specific event, call the <code>off(if:)</code> with the UUID received from its <code>on</code> call.</p>
1295
+
<p>If you wish to remove a specific event, call the <code><ahref="../Classes/SocketIOClient.html#/s:FC8SocketIO14SocketIOClient3offFT2idV10Foundation4UUID_T_">off(id:)</a></code> with the UUID received from its <code>on</code> call.</p>
0 commit comments