@@ -100,7 +100,8 @@ SCWorker.prototype._init = function (options) {
100100 secure : this . options . protocol == 'https' ,
101101 host : this . options . host ,
102102 origins : this . options . origins ,
103- appName : this . options . appName
103+ appName : this . options . appName ,
104+ path : this . options . path
104105 } ) ;
105106
106107 this . _socketServer . on ( 'connection' , function ( socket ) {
@@ -114,8 +115,8 @@ SCWorker.prototype._init = function (options) {
114115 self . noticeHandler . apply ( self , arguments ) ;
115116 } ) ;
116117
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 ) ;
119120
120121 this . _errorDomain . add ( this . _socketServer ) ;
121122 this . _socketServer . on ( 'ready' , function ( ) {
@@ -125,7 +126,7 @@ SCWorker.prototype._init = function (options) {
125126} ;
126127
127128SCWorker . prototype . getSocketURL = function ( ) {
128- return this . _socketURL ;
129+ return this . _socketPath ;
129130} ;
130131
131132SCWorker . prototype . _start = function ( ) {
@@ -153,7 +154,7 @@ SCWorker.prototype._httpRequestHandler = function (req, res) {
153154 this . _httpRequestCount ++ ;
154155 if ( req . url == this . _paths . statusURL ) {
155156 this . _handleStatusRequest ( req , res ) ;
156- } else if ( ! this . _socketURLRegex . test ( req . url ) ) {
157+ } else if ( ! this . _socketPathRegex . test ( req . url ) ) {
157158 this . _server . emit ( 'req' , req , res ) ;
158159 }
159160} ;
0 commit comments