@@ -982,6 +982,8 @@ allowMethods(Pair.prototype, ["send", "receive"])
982982 * water mark for a connected {@link Subscriber}, then any messages that would
983983 * be sent to the subscriber in question shall instead be dropped until the mute
984984 * state ends. The {@link Writable.send}() method will never block.
985+ *
986+ * @includeExample examples/pub-sub/publisher.ts
985987 */
986988export class Publisher extends Socket {
987989 /**
@@ -1030,6 +1032,8 @@ allowMethods(Publisher.prototype, ["send"])
10301032 * {@link Publisher}. Initially a {@link Subscriber} is not subscribed to any
10311033 * messages. Use {@link Subscriber.subscribe}() to specify which messages to
10321034 * subscribe to. This socket cannot send messages.
1035+ *
1036+ * @includeExample examples/pub-sub/subscriber.ts
10331037 */
10341038export class Subscriber extends Socket {
10351039 /**
@@ -1135,6 +1139,8 @@ allowMethods(Subscriber.prototype, ["receive"])
11351139 * If no services are available, then any send operation on the socket shall
11361140 * block until at least one service becomes available. The REQ socket shall not
11371141 * discard messages.
1142+ *
1143+ * @includeExample examples/req-rep/client.ts
11381144 */
11391145export class Request extends Socket {
11401146 /**
@@ -1201,6 +1207,8 @@ allowMethods(Request.prototype, ["send", "receive"])
12011207 * among all clients, and each reply sent is routed to the client that issued
12021208 * the last request. If the original requester does not exist any more the reply
12031209 * is silently discarded.
1210+ *
1211+ * @includeExample examples/req-rep/server.ts
12041212 */
12051213export class Reply extends Socket {
12061214 /**
@@ -1232,6 +1240,9 @@ allowMethods(Reply.prototype, ["send", "receive"])
12321240 * When a {@link Dealer} is connected to a {@link Reply} socket, each message
12331241 * sent must consist of an empty message part, the delimiter, followed by one or
12341242 * more body parts.
1243+ *
1244+ * @includeExample examples/queue/index.ts
1245+ * @includeExample examples/queue/queue.ts
12351246 */
12361247export class Dealer extends Socket {
12371248 /**
@@ -1375,6 +1386,8 @@ allowMethods(Router.prototype, ["send", "receive"])
13751386 * A {@link Pull} socket is used by a pipeline node to receive messages from
13761387 * upstream pipeline nodes. Messages are fair-queued from among all connected
13771388 * upstream nodes. This socket cannot send messages.
1389+ *
1390+ * @includeExample examples/push-pull/worker.ts
13781391 */
13791392export class Pull extends Socket {
13801393 constructor ( options ?: SocketOptions < Pull > ) {
@@ -1406,6 +1419,8 @@ allowMethods(Pull.prototype, ["receive"])
14061419 * at all, then {@link Writable.send}() will block until the mute state ends or
14071420 * at least one downstream node becomes available for sending; messages are not
14081421 * discarded.
1422+ *
1423+ * @includeExample examples/push-pull/producer.ts
14091424 */
14101425export class Push extends Socket {
14111426 constructor ( options ?: SocketOptions < Push > ) {
0 commit comments