示例#1
0
 /// <summary>
 /// Attach event-handler <code>fnFunction</code> to the 'close' event of this <code>sap.ui.core.ws.WebSocket</code>.<br>
 /// </summary>
 /// <param name="oData">The object, that should be passed along with the event-object when firing the event.</param>
 /// <param name="fnFunction">The function to call, when the event occurs. This function will be called on the oListener-instance (if present) or in a 'static way'.</param>
 /// <param name="oListener">Object on which to call the given function. If empty, this WebSocket is used.</param>
 /// <returns><code>this</code> to allow method chaining</returns>
 public extern virtual sap.ui.core.ws.WebSocket attachClose(object oData, sap.ui.core.ws.WebSocket.CloseDelegate fnFunction, object oListener);
示例#2
0
 /// <summary>
 /// Attach event-handler <code>fnFunction</code> to the 'close' event of this <code>sap.ui.core.ws.WebSocket</code>.<br>
 /// </summary>
 /// <param name="fnFunction">The function to call, when the event occurs. This function will be called on the oListener-instance (if present) or in a 'static way'.</param>
 /// <returns><code>this</code> to allow method chaining</returns>
 public extern virtual sap.ui.core.ws.WebSocket attachClose(sap.ui.core.ws.WebSocket.CloseDelegate fnFunction);