Permalink
Browse files

No need to escape slash. (via @squaremo)

  • Loading branch information...
majek committed Jan 27, 2012
1 parent b05865e commit 3a06eef0b03804a1ecc6c2b1f06dbfdb2a2b5a7a
Showing with 8 additions and 8 deletions.
  1. +1 −1 README.md
  2. +1 −1 examples/echo/server.js
  3. +6 −6 examples/test_server/sockjs_app.js
View
@@ -34,7 +34,7 @@ echo.on('connection', function(conn) {
});
var server = http.createServer();
echo.installHandlers(server, {prefix:'[/]echo'});
echo.installHandlers(server, {prefix:'/echo'});
server.listen(9999, '0.0.0.0');
```
View
@@ -24,7 +24,7 @@ server.addListener('upgrade', function(req,res){
res.end();
});
sockjs_echo.installHandlers(server, {prefix:'[/]echo'});
sockjs_echo.installHandlers(server, {prefix:'/echo'});
console.log(' [*] Listening on 0.0.0.0:9999' );
server.listen(9999, '0.0.0.0');
@@ -72,13 +72,13 @@ exports.install = function(opts, server) {
});
sjs_echo.installHandlers(server, {prefix:'[/]echo',
sjs_echo.installHandlers(server, {prefix:'/echo',
response_limit: 4096,
jsessionid: true});
sjs_echo.installHandlers(server, {prefix:'[/]disabled_websocket_echo',
sjs_echo.installHandlers(server, {prefix:'/disabled_websocket_echo',
websocket: false});
sjs_close.installHandlers(server, {prefix:'[/]close'});
sjs_ticker.installHandlers(server, {prefix:'[/]ticker'});
sjs_amplify.installHandlers(server, {prefix:'[/]amplify'});
sjs_broadcast.installHandlers(server, {prefix:'[/]broadcast'});
sjs_close.installHandlers(server, {prefix:'/close'});
sjs_ticker.installHandlers(server, {prefix:'/ticker'});
sjs_amplify.installHandlers(server, {prefix:'/amplify'});
sjs_broadcast.installHandlers(server, {prefix:'/broadcast'});
};

0 comments on commit 3a06eef

Please sign in to comment.