Lines Matching refs:path
63 WebSocketRouter.prototype.mount = function(path, protocol, callback) { argument
64 if (!path) {
74 path = this.pathToRegExp(path);
75 if (!(path instanceof RegExp)) {
78 var pathString = path.toString();
88 'path': path,
94 WebSocketRouter.prototype.unmount = function(path, protocol) { argument
95 var index = this.findHandlerIndex(this.pathToRegExp(path).toString(), protocol);
115 WebSocketRouter.prototype.pathToRegExp = function(path) { argument
116 if (typeof(path) === 'string') {
117 if (path === '*') {
118 path = /^.*$/;
121 path = path.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
122 path = new RegExp('^' + path + '$');
125 return path;
141 if (handler.path.test(request.resourceURL.pathname)) {