| 
									
										
										
										
											2021-10-01 18:16:12 +03:00
										 |  |  | #import <DOM/Event.idl> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-07 19:29:22 -07:00
										 |  |  | // https://websockets.spec.whatwg.org/#the-closeevent-interface | 
					
						
							| 
									
										
										
										
											2023-09-03 02:00:01 +12:00
										 |  |  | [Exposed=*] | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | interface CloseEvent : Event { | 
					
						
							| 
									
										
										
										
											2021-10-01 18:16:12 +03:00
										 |  |  |     constructor(DOMString type, optional CloseEventInit eventInitDict = {}); | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     readonly attribute boolean wasClean; | 
					
						
							|  |  |  |     readonly attribute unsigned short code; | 
					
						
							|  |  |  |     readonly attribute USVString reason; | 
					
						
							| 
									
										
										
										
											2021-10-01 18:16:12 +03:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-01 18:16:12 +03:00
										 |  |  | dictionary CloseEventInit : EventInit { | 
					
						
							|  |  |  |     boolean wasClean = false; | 
					
						
							|  |  |  |     unsigned short code = 0; | 
					
						
							|  |  |  |     USVString reason = ""; | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | }; |