Results of 1 - 4 of about 4 for acknowledge (0.001 sec.)
- 例 12426
- « リソース型 Stomp 関数 » PHP Manual Stomp 例 検索 例 例1 オブジェクト指向型 <?php $queue = '/queue/foo' ; $msg = 'bar' ; /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection
... e ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { var_dump ( $frame ); /* acknowledge that the frame was received */ $stomp -> ack ( $frame ); } /* close connection */ unset( $stomp ); ?> 上の例の出力は、 たと ... eue ); /* read a frame */ $frame = stomp_read_frame ( $link ); if ( $frame [ 'body' ] === $msg ) { var_dump ( $frame ); /* acknowledge that the frame was received */ stomp_ack ( $link , $frame [ 'headers' ][ 'message-id' ]); } /* close connection */ stomp_c ... frame link connection message send subscribe body transaction Stomp read headers localhost Connection failed messages dump acknowledge received command destination timestamp expires priority ...
-
https://man.mtool.work/php/8.3/stomp.examples.html
- 例 8469
- « リソース型 Stomp 関数 » PHP Manual Stomp 例 検索 例 例1 オブジェクト指向型 <?php $queue = '/queue/foo' ; $msg = 'bar' ; /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection
... e ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { var_dump ( $frame ); /* acknowledge that the frame was received */ $stomp -> ack ( $frame ); } /* close connection */ unset( $stomp ); ?> 上の例の出力は、 たと ... eue ); /* read a frame */ $frame = stomp_read_frame ( $link ); if ( $frame [ 'body' ] === $msg ) { var_dump ( $frame ); /* acknowledge that the frame was received */ stomp_ack ( $link , $frame [ 'headers' ][ 'message-id' ]); } /* close connection */ stomp_c ...
-
https://man.mtool.work/php/8.3/stomp.examples.html
- Acknowledges consumption of a message 8025
- « Stomp::abort Stomp::begin » PHP Manual Stomp Acknowledges consumption of a message 検索 Stomp::ack stomp_ack (PECL stomp >= 0.1.0) Stomp::ack -- stomp_ack — Acknowledges consumption of a message 説明 オブジェクト指向型 (method): public fu
... $msg , array $headers = ? ): bool 手続き型: function stomp_ack ( resource $link , mixed $msg , array $headers = ? ): bool Acknowledges consumption of a message from a subscription using client acknowledgment. パラメータ link 手続き型のみ: stomp_connect() が ... 返す stomp リンク ID。 msg The message/messageId to be acknowledged. headers 追加のヘッダ (例: receipt) を含む連想配列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 ... */ $stomp -> subscribe ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { /* acknowledge that the frame was received */ $stomp -> ack ( $frame ); } /* remove the subscription */ $stomp -> unsubscribe ( $queue ); ...
-
https://man.mtool.work/php/8.3/stomp.ack.html
- Acknowledges consumption of a message 8025
- « Stomp::abort Stomp::begin » PHP Manual Stomp Acknowledges consumption of a message 検索 Stomp::ack stomp_ack (PECL stomp >= 0.1.0) Stomp::ack -- stomp_ack — Acknowledges consumption of a message 説明 オブジェクト指向型 (method): public fu
... $msg , array $headers = ? ): bool 手続き型: function stomp_ack ( resource $link , mixed $msg , array $headers = ? ): bool Acknowledges consumption of a message from a subscription using client acknowledgment. パラメータ link 手続き型のみ: stomp_connect() が ... 返す stomp リンク ID。 msg The message/messageId to be acknowledged. headers 追加のヘッダ (例: receipt) を含む連想配列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 ... */ $stomp -> subscribe ( $queue ); /* read a frame */ $frame = $stomp -> readFrame (); if ( $frame -> body === $msg ) { /* acknowledge that the frame was received */ $stomp -> ack ( $frame ); } /* remove the subscription */ $stomp -> unsubscribe ( $queue ); ...
-
https://man.mtool.work/php/8.3/stomp.ack.html
PREV
1
NEXT