Skip to content

Commit 237960e

Browse files
committed
[codestyle] Use 80 characters per line in JSDoc comments
1 parent 02ecf45 commit 237960e

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

lib/event-target.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class Event {
1010
* Create a new `Event`.
1111
*
1212
* @param {String} type The name of the event
13-
* @param {Object} target A reference to the target to which the event was dispatched
13+
* @param {Object} target A reference to the target to which the event was
14+
* dispatched
1415
*/
1516
constructor(type, target) {
1617
this.target = target;
@@ -29,7 +30,8 @@ class MessageEvent extends Event {
2930
* Create a new `MessageEvent`.
3031
*
3132
* @param {(String|Buffer|ArrayBuffer|Buffer[])} data The received data
32-
* @param {WebSocket} target A reference to the target to which the event was dispatched
33+
* @param {WebSocket} target A reference to the target to which the event was
34+
* dispatched
3335
*/
3436
constructor(data, target) {
3537
super('message', target);
@@ -48,9 +50,12 @@ class CloseEvent extends Event {
4850
/**
4951
* Create a new `CloseEvent`.
5052
*
51-
* @param {Number} code The status code explaining why the connection is being closed
52-
* @param {String} reason A human-readable string explaining why the connection is closing
53-
* @param {WebSocket} target A reference to the target to which the event was dispatched
53+
* @param {Number} code The status code explaining why the connection is being
54+
* closed
55+
* @param {String} reason A human-readable string explaining why the
56+
* connection is closing
57+
* @param {WebSocket} target A reference to the target to which the event was
58+
* dispatched
5459
*/
5560
constructor(code, reason, target) {
5661
super('close', target);
@@ -71,7 +76,8 @@ class OpenEvent extends Event {
7176
/**
7277
* Create a new `OpenEvent`.
7378
*
74-
* @param {WebSocket} target A reference to the target to which the event was dispatched
79+
* @param {WebSocket} target A reference to the target to which the event was
80+
* dispatched
7581
*/
7682
constructor(target) {
7783
super('open', target);
@@ -89,7 +95,8 @@ class ErrorEvent extends Event {
8995
* Create a new `ErrorEvent`.
9096
*
9197
* @param {Object} error The error that generated this event
92-
* @param {WebSocket} target A reference to the target to which the event was dispatched
98+
* @param {WebSocket} target A reference to the target to which the event was
99+
* dispatched
93100
*/
94101
constructor(error, target) {
95102
super('error', target);

lib/receiver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class Receiver extends Writable {
3030
*
3131
* @param {String} [binaryType=nodebuffer] The type for binary data
3232
* @param {Object} [extensions] An object containing the negotiated extensions
33-
* @param {Boolean} [isServer=false] Specifies whether to operate in client or server
34-
* mode
33+
* @param {Boolean} [isServer=false] Specifies whether to operate in client or
34+
* server mode
3535
* @param {Number} [maxPayload=0] The maximum allowed message length
3636
*/
3737
constructor(binaryType, extensions, isServer, maxPayload) {

lib/websocket-server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ module.exports = WebSocketServer;
339339
*
340340
* @param {EventEmitter} server The event emitter
341341
* @param {Object.<String, Function>} map The listeners to add
342-
* @return {Function} A function that will remove the added listeners when called
342+
* @return {Function} A function that will remove the added listeners when
343+
* called
343344
* @private
344345
*/
345346
function addListeners(server, map) {

0 commit comments

Comments
 (0)