github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/static/libs/sockjs-client-1.1.0/lib/event/close.js (about) 1 'use strict'; 2 3 var inherits = require('inherits') 4 , Event = require('./event') 5 ; 6 7 function CloseEvent() { 8 Event.call(this); 9 this.initEvent('close', false, false); 10 this.wasClean = false; 11 this.code = 0; 12 this.reason = ''; 13 } 14 15 inherits(CloseEvent, Event); 16 17 module.exports = CloseEvent;