@@ -100,7 +100,8 @@ SCWorker.prototype._init = function (options) {
100
100
secure : this . options . protocol == 'https' ,
101
101
host : this . options . host ,
102
102
origins : this . options . origins ,
103
- appName : this . options . appName
103
+ appName : this . options . appName ,
104
+ path : this . options . path
104
105
} ) ;
105
106
106
107
this . _socketServer . on ( 'connection' , function ( socket ) {
@@ -114,8 +115,8 @@ SCWorker.prototype._init = function (options) {
114
115
self . noticeHandler . apply ( self , arguments ) ;
115
116
} ) ;
116
117
117
- this . _socketURL = this . _socketServer . getURL ( ) ;
118
- this . _socketURLRegex = new RegExp ( '^' + this . _socketURL ) ;
118
+ this . _socketPath = this . _socketServer . getPath ( ) ;
119
+ this . _socketPathRegex = new RegExp ( '^' + this . _socketPath ) ;
119
120
120
121
this . _errorDomain . add ( this . _socketServer ) ;
121
122
this . _socketServer . on ( 'ready' , function ( ) {
@@ -125,7 +126,7 @@ SCWorker.prototype._init = function (options) {
125
126
} ;
126
127
127
128
SCWorker . prototype . getSocketURL = function ( ) {
128
- return this . _socketURL ;
129
+ return this . _socketPath ;
129
130
} ;
130
131
131
132
SCWorker . prototype . _start = function ( ) {
@@ -153,7 +154,7 @@ SCWorker.prototype._httpRequestHandler = function (req, res) {
153
154
this . _httpRequestCount ++ ;
154
155
if ( req . url == this . _paths . statusURL ) {
155
156
this . _handleStatusRequest ( req , res ) ;
156
- } else if ( ! this . _socketURLRegex . test ( req . url ) ) {
157
+ } else if ( ! this . _socketPathRegex . test ( req . url ) ) {
157
158
this . _server . emit ( 'req' , req , res ) ;
158
159
}
159
160
} ;
0 commit comments