@@ -72,7 +72,6 @@ var events = exports.events = {
7272 *
7373 * @constructor
7474 * @param {String|Number } type
75- * @api public
7675 */
7776
7877function Socket ( type , ctx ) {
@@ -116,7 +115,6 @@ util.inherits(Socket, EventEmitter);
116115 * all send() calls will be queued
117116 *
118117 * @return {Socket } for chaining
119- * @api public
120118 */
121119
122120Socket . prototype . pause = function ( ) {
@@ -128,7 +126,6 @@ Socket.prototype.pause = function () {
128126 * Set a socket back to normal work mode
129127 *
130128 * @return {Socket } for chaining
131- * @api public
132129 */
133130
134131Socket . prototype . resume = function ( ) {
@@ -142,7 +139,6 @@ Socket.prototype.resume = function () {
142139 * Manually read from a socket, even when paused
143140 *
144141 * @return {undefined|Buffer[] } An array of message parts, or undefined if there was nothing in the queue
145- * @api public
146142 */
147143
148144Socket . prototype . read = function ( ) {
@@ -152,7 +148,7 @@ Socket.prototype.read = function () {
152148/**
153149 * Bump the reference count on the socket
154150 *
155- * @api public
151+ * @return { Socket } for chaining
156152 */
157153
158154Socket . prototype . ref = function ( ) {
@@ -163,7 +159,7 @@ Socket.prototype.ref = function () {
163159/**
164160 * Lower the reference count on the socket
165161 *
166- * @api public
162+ * @return { Socket } for chaining
167163 */
168164
169165Socket . prototype . unref = function ( ) {
@@ -178,7 +174,6 @@ Socket.prototype.unref = function () {
178174 * @param {String } opt
179175 * @param {Number|String|Buffer } val
180176 * @return {Socket } for chaining
181- * @api public
182177 */
183178
184179Socket . prototype . set = function ( opt , val ) {
@@ -197,7 +192,6 @@ Socket.prototype.setsockopt = Socket.prototype.set;
197192 *
198193 * @param {String } opt
199194 * @return {Number|String|Buffer }
200- * @api public
201195 */
202196
203197Socket . prototype . get = function ( opt ) {
@@ -214,7 +208,6 @@ Socket.prototype.getsockopt = Socket.prototype.get;
214208 * @param {String } addr
215209 * @param {Function } cb
216210 * @return {Socket } for chaining
217- * @api public
218211 */
219212
220213Socket . prototype . bind = function ( addr , cb ) {
@@ -238,7 +231,6 @@ Socket.prototype.bind = function (addr, cb) {
238231 *
239232 * @param {String } addr
240233 * @return {Socket } for chaining
241- * @api public
242234 */
243235
244236Socket . prototype . bindSync = function ( addr ) {
@@ -254,7 +246,6 @@ Socket.prototype.bindSync = function (addr) {
254246 * @param {String } addr
255247 * @param {Function } cb
256248 * @return {Socket } for chaining
257- * @api public
258249 */
259250
260251Socket . prototype . unbind = function ( addr , cb ) {
@@ -282,7 +273,6 @@ Socket.prototype.unbind = function (addr, cb) {
282273 *
283274 * @param {String } addr
284275 * @return {Socket } for chaining
285- * @api public
286276 */
287277
288278Socket . prototype . unbindSync = function ( addr ) {
@@ -310,7 +300,6 @@ Socket.prototype.connect = function (addr) {
310300 *
311301 * @param {String } addr
312302 * @return {Socket } for chaining
313- * @api public
314303 */
315304
316305Socket . prototype . disconnect = function ( addr ) {
@@ -326,7 +315,6 @@ Socket.prototype.disconnect = function (addr) {
326315 * @param {Number } timer interval in ms > 0 or Undefined for default
327316 * @param {Number } The maximum number of events to read on each interval, default is 1, use 0 for reading all events
328317 * @return {Socket } for chaining
329- * @api public
330318 */
331319
332320Socket . prototype . monitor = function ( interval , numOfEvents ) {
@@ -353,7 +341,6 @@ Socket.prototype.monitor = function (interval, numOfEvents) {
353341 * and close the socket
354342 *
355343 * @return {Socket } for chaining
356- * @api public
357344 */
358345
359346Socket . prototype . unmonitor = function ( ) {
@@ -369,7 +356,6 @@ Socket.prototype.unmonitor = function () {
369356 *
370357 * @param {String } filter
371358 * @return {Socket } for chaining
372- * @api public
373359 */
374360
375361Socket . prototype . subscribe = function ( filter ) {
@@ -382,7 +368,6 @@ Socket.prototype.subscribe = function (filter) {
382368 *
383369 * @param {String } filter
384370 * @return {Socket } for chaining
385- * @api public
386371 */
387372
388373Socket . prototype . unsubscribe = function ( filter ) {
@@ -397,7 +382,6 @@ Socket.prototype.unsubscribe = function (filter) {
397382 * @param {Number } [flags]
398383 * @param {Function } [cb]
399384 * @return {Socket } for chaining
400- * @api public
401385 */
402386
403387Socket . prototype . send = function ( msg , flags , cb ) {
@@ -516,7 +500,6 @@ Socket.prototype._flushWrites = function () {
516500 * Close the socket.
517501 *
518502 * @return {Socket } for chaining
519- * @api public
520503 */
521504
522505Socket . prototype . close = function ( ) {
@@ -530,7 +513,6 @@ Socket.prototype.close = function () {
530513 * @param {String } type
531514 * @param {Object } options
532515 * @return {Socket }
533- * @api public
534516 */
535517
536518exports . createSocket = function ( type , options , ctx ) {
@@ -552,3 +534,4 @@ exports.createSocket = function (type, options, ctx) {
552534
553535exports . Socket = Socket ;
554536exports . types = types ;
537+ exports . opts = opts ;
0 commit comments