File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ function Server(compiler, options) {
23
23
this . hot = options . hot ;
24
24
this . headers = options . headers ;
25
25
26
- this . sockWrite = function ( type , data ) {
27
- if ( this . sock ) {
28
- this . sock . write ( JSON . stringify ( { type : type , data : data } ) ) ;
29
- }
30
- }
31
-
32
26
// Listening for events
33
27
var invalidPlugin = function ( ) {
34
28
this . sockWrite ( "invalid" ) ;
@@ -300,6 +294,12 @@ Server.prototype.close = function() {
300
294
this . middleware . close ( ) ;
301
295
}
302
296
297
+ Server . prototype . sockWrite = function ( type , data ) {
298
+ if ( this . sock ) {
299
+ this . sock . write ( JSON . stringify ( { type : type , data : data } ) ) ;
300
+ }
301
+ }
302
+
303
303
Server . prototype . serveMagicHtml = function ( req , res , next ) {
304
304
var _path = req . path ;
305
305
try {
You can’t perform that action at this time.
0 commit comments