|
|||||
|
|
|||||
PHP Synchronous vs. Asynchronous operations
Synchronous vs. Asynchronous operationsBy default this client is configured to work in a synchronous mode, which means that for every command (except CONNECT) the client will wait for the receipt . You can set the client to work in the asynchronous mode, by setting the sync property of the StompConnection object to false. Asynchronous client $conn = new StompConnection("tcp://localhost:61613"); $conn->sync = false; You can also perform single operations in desired mode, no matter of the global client settings, by passing additional parameter to the appropriate method Asynchronous method $this->conn->send("/queue/test", "test", null, true); Some things you have to consider when deciding whether to use synchrnous os asynchronous mode
|
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||