Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ZMQSocket::__constructZMQSocket::getEndpoints>
^ZMQSocketLast updated: Mon, 26 Oct 2026

ZMQSocket::disconnect

(PECL zmq >= 1.0.4)

ZMQSocket::disconnect — Disconnect a socket

Description

public function ZMQSocket::disconnect(string $dsn): ZMQSocket

Disconnect the socket from a previously connected remote endpoint. The endpoint is defined in format transport://address where transport is one of the following: inproc, ipc, tcp, pgm or epgm.

Parameters

dsn

The connect dsn, for example transport://address.

Return Values

Returns the current object. Throws ZMQSocketException on error.


<ZMQSocket::__constructZMQSocket::getEndpoints>
^ZMQSocketLast updated: Mon, 26 Oct 2026