ServerMessage.connectWroteChunk
gulong connectWroteChunk(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : soup.server_message.ServerMessage)))
&& Parameters!T.length < 2)Connect to WroteChunk signal.
Emitted immediately after writing a body chunk for a message.
Note that this signal is not parallel to signalServerMessage::got-chunk; it is emitted only when a complete chunk (added with [soup.message_body.MessageBody.append] or [soup.message_body.MessageBody.appendBytes] has been written. To get more useful continuous progress information, use signalServerMessage::wrote-body-data.
Parameters
callback | signal callback delegate or function to connect void callback(soup.server_message.ServerMessage serverMessage) serverMessage the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID