@@ -10,7 +10,8 @@ class Event {
10
10
* Create a new `Event`.
11
11
*
12
12
* @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
14
15
*/
15
16
constructor ( type , target ) {
16
17
this . target = target ;
@@ -29,7 +30,8 @@ class MessageEvent extends Event {
29
30
* Create a new `MessageEvent`.
30
31
*
31
32
* @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
33
35
*/
34
36
constructor ( data , target ) {
35
37
super ( 'message' , target ) ;
@@ -48,9 +50,12 @@ class CloseEvent extends Event {
48
50
/**
49
51
* Create a new `CloseEvent`.
50
52
*
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
54
59
*/
55
60
constructor ( code , reason , target ) {
56
61
super ( 'close' , target ) ;
@@ -71,7 +76,8 @@ class OpenEvent extends Event {
71
76
/**
72
77
* Create a new `OpenEvent`.
73
78
*
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
75
81
*/
76
82
constructor ( target ) {
77
83
super ( 'open' , target ) ;
@@ -89,7 +95,8 @@ class ErrorEvent extends Event {
89
95
* Create a new `ErrorEvent`.
90
96
*
91
97
* @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
93
100
*/
94
101
constructor ( error , target ) {
95
102
super ( 'error' , target ) ;
0 commit comments