Class: Celluloid::ZMQ::XPubSocket

Inherits:
Socket
  • Object
show all
Includes:
ReadableSocket, WritableSocket
Defined in:
lib/celluloid/zmq/sockets.rb

Overview

XPubSockets are just like PubSockets but reading from them gives you the subscription/unsubscription channels as they’re joined/left.

Instance Attribute Summary

Attributes inherited from Socket

#linger

Instance Method Summary collapse

Methods included from ReadableSocket

#bind, #connect, #read, #read_multipart

Methods included from WritableSocket

#write

Methods inherited from Socket

#bind, #close, #connect, #get, #identity, #identity=, #set

Constructor Details

#initializeXPubSocket

Returns a new instance of XPubSocket.



196
197
198
# File 'lib/celluloid/zmq/sockets.rb', line 196

def initialize
  super :xpub
end