Skip to content

Commit

Permalink
Use ws to handle the WebSocket heavy lifting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrluanma committed Jan 5, 2015
1 parent dcfb8ab commit 6519b6b
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 299 deletions.
34 changes: 14 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,7 @@ Push the code to Heroku.

```
$ git push heroku master
Initializing repository, done.
Counting objects: 178, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (97/97), done.
Writing objects: 100% (178/178), 47.42 KiB | 0 bytes/s, done.
Total 178 (delta 89), reused 162 (delta 78)
-----> Node.js app detected
-----> Requested node range: 0.10.x
-----> Resolved node version: 0.10.33
-----> Downloading and installing node
-----> Writing a custom .npmrc to circumvent npm bugs
-----> Exporting config vars to environment
-----> Installing dependencies
npm WARN package.json [email protected] No repository field.
-----> Cleaning up node-gyp and npm artifacts
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 5.1MB
-----> Launching... done, v3
http://still-tor-8707.herokuapp.com/ deployed to Heroku
Expand All @@ -57,6 +38,19 @@ KEY: foobar
METHOD: rc4
```

Install project dependencies with `npm install`:

```
$ npm install
[email protected] node_modules/minimist
[email protected] node_modules/ws
├── [email protected]
├── [email protected]
└── [email protected]
```

Then run:

```
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
],
"local_port": 1080,
"password": "`try*(^^$some^$%^complex>:<>?~password/",
"timeout": 600,
"timeout": 50,
"method": "rc4"
}
124 changes: 40 additions & 84 deletions local.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "shadowsocks-heroku",
"version": "0.9.7",
"version": "0.9.8",
"dependencies": {
"minimist": "^1.1.0"
"minimist": "^1.1.0",
"ws": "^0.6.3"
},
"engines": {
"node": "0.10.x"
Expand Down
Loading

0 comments on commit 6519b6b

Please sign in to comment.