Stomp::subscribe

stomp_subscribe

(PECL stomp >= 0.1.0)

Stomp::subscribe -- stomp_subscribeRegisters to listen to a given destination

说明

面向对象风格 (method):

public Stomp::subscribe ( string $destination [, array $headers ] ) : bool

过程化风格:

stomp_subscribe ( resource $link , string $destination [, array $headers ] ) : bool

Registers to listen to a given destination.

参数

link

仅对过程化样式:由 stomp_connect() 返回的 stomp 连接标识符。

destination

Destination to subscribe to.

headers

关联数组包含附加的头信息(例如: receipt)。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

注释

Tip

Stomp is inherently asynchronous. Synchronous communication can be implemented adding a receipt header. This will cause methods to not return anything until the server has acknowledged receipt of the message or until read timeout was reached.

范例

See stomp_ack().

相关文章
php classkit 函数 dynamically adds a new method to a given classphp gd 和图像处理 函数 crop an image to the given rectanglephp maxdb 函数 returns the number of parameter for the given statementphp pcntl 函数 retrieve the system error message associated with the given errnophp ps 函数 output text at given positionphp radius 函数 causes the library to read the given configuration filephp socket 函数 get array with contents of getaddrinfo about the given hostnamephp statistic 函数 calculates any one parameter of the beta distribution given values for the othersphp statistic 函数 calculates any one parameter of the uniform distribution given values for the othersphp stream 函数 runs the equivalent of the select system call on the given arrays of streams with a timeout specified by tv sec and tv usecphp win32service 函数 registers the script with the scm so that it can act as the service with the given namephp hyperwave api 函数 returns a list of all destination anchorsphp intltimezone get the region code associated with the given system time zone idphp solrclient deletes all documents matching the given queryphp solrquery requests a return of sub results for values within the given facetphp stomp indicates whether or not there is a frame ready to readphp stomp registers to listen to a given destinationphp swoole server listen on the given ip and port socket type.php ziparchive revert all changes done to an entry at the given indexphp ziparchive revert all changes done to an entry with the given name
关注编程学问公众号