Skip to content

Commit 10ca37c

Browse files
committed
Use ws to handle the WebSocket heavy lifting
ws: https://github.com/einaros/ws
1 parent dcfb8ab commit 10ca37c

8 files changed

+143
-304
lines changed

README.md

+14-20
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,7 @@ Push the code to Heroku.
2020

2121
```
2222
$ git push heroku master
23-
Initializing repository, done.
24-
Counting objects: 178, done.
25-
Delta compression using up to 4 threads.
26-
Compressing objects: 100% (97/97), done.
27-
Writing objects: 100% (178/178), 47.42 KiB | 0 bytes/s, done.
28-
Total 178 (delta 89), reused 162 (delta 78)
29-
30-
-----> Node.js app detected
31-
-----> Requested node range: 0.10.x
32-
-----> Resolved node version: 0.10.33
33-
-----> Downloading and installing node
34-
-----> Writing a custom .npmrc to circumvent npm bugs
35-
-----> Exporting config vars to environment
36-
-----> Installing dependencies
37-
npm WARN package.json [email protected] No repository field.
38-
-----> Cleaning up node-gyp and npm artifacts
39-
-----> Building runtime environment
40-
-----> Discovering process types
41-
Procfile declares types -> web
42-
23+
4324
-----> Compressing... done, 5.1MB
4425
-----> Launching... done, v3
4526
http://still-tor-8707.herokuapp.com/ deployed to Heroku
@@ -57,6 +38,19 @@ KEY: foobar
5738
METHOD: rc4
5839
```
5940

41+
Install project dependencies with `npm install`:
42+
43+
```
44+
$ npm install
45+
46+
[email protected] node_modules/minimist
47+
48+
[email protected] node_modules/ws
49+
50+
51+
52+
```
53+
6054
Then run:
6155

6256
```

local.js

+40-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "shadowsocks-heroku",
3-
"version": "0.9.7",
3+
"version": "0.9.8",
44
"dependencies": {
5-
"minimist": "^1.1.0"
5+
"minimist": "^1.1.0",
6+
"ws": "^0.6.3"
67
},
78
"engines": {
89
"node": "0.10.x"

0 commit comments

Comments
 (0)