Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
a94809af
Commit
a94809af
authored
Oct 25, 2011
by
Maciej Małecki
Committed by
Cédric de Saint Martin
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[example] Replace `sys` usages with `util`
parent
024dd14a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
examples/websocket/latent-websocket-proxy.js
examples/websocket/latent-websocket-proxy.js
+4
-4
examples/websocket/standalone-websocket-proxy.js
examples/websocket/standalone-websocket-proxy.js
+4
-4
examples/websocket/websocket-proxy.js
examples/websocket/websocket-proxy.js
+4
-4
No files found.
examples/websocket/latent-websocket-proxy.js
View file @
a94809af
...
...
@@ -24,7 +24,7 @@
*/
var
sys
=
require
(
'
sys
'
),
var
util
=
require
(
'
util
'
),
http
=
require
(
'
http
'
),
colors
=
require
(
'
colors
'
),
websocket
=
require
(
'
../../vendor/websocket
'
),
...
...
@@ -55,10 +55,10 @@ server.listen(8080);
//
var
socket
=
io
.
listen
(
server
);
socket
.
on
(
'
connection
'
,
function
(
client
)
{
sys
.
debug
(
'
Got websocket connection
'
);
util
.
debug
(
'
Got websocket connection
'
);
client
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message from client:
'
+
msg
);
util
.
debug
(
'
Got message from client:
'
+
msg
);
});
socket
.
broadcast
(
'
from server
'
);
...
...
@@ -101,5 +101,5 @@ ws.on('open', function () {
});
ws
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
util
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
});
examples/websocket/standalone-websocket-proxy.js
View file @
a94809af
...
...
@@ -24,7 +24,7 @@
*/
var
sys
=
require
(
'
sys
'
),
var
util
=
require
(
'
util
'
),
http
=
require
(
'
http
'
),
colors
=
require
(
'
colors
'
),
websocket
=
require
(
'
../../vendor/websocket
'
),
...
...
@@ -55,10 +55,10 @@ server.listen(8080);
//
var
socket
=
io
.
listen
(
server
);
socket
.
on
(
'
connection
'
,
function
(
client
)
{
sys
.
debug
(
'
Got websocket connection
'
);
util
.
debug
(
'
Got websocket connection
'
);
client
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message from client:
'
+
msg
);
util
.
debug
(
'
Got message from client:
'
+
msg
);
});
socket
.
broadcast
(
'
from server
'
);
...
...
@@ -97,5 +97,5 @@ ws.on('open', function () {
});
ws
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
util
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
});
examples/websocket/websocket-proxy.js
View file @
a94809af
...
...
@@ -24,7 +24,7 @@
*/
var
sys
=
require
(
'
sys
'
),
var
util
=
require
(
'
util
'
),
http
=
require
(
'
http
'
),
colors
=
require
(
'
colors
'
),
websocket
=
require
(
'
../../vendor/websocket
'
),
...
...
@@ -55,10 +55,10 @@ server.listen(8080);
//
var
socket
=
io
.
listen
(
server
);
socket
.
on
(
'
connection
'
,
function
(
client
)
{
sys
.
debug
(
'
Got websocket connection
'
);
util
.
debug
(
'
Got websocket connection
'
);
client
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message from client:
'
+
msg
);
util
.
debug
(
'
Got message from client:
'
+
msg
);
});
socket
.
broadcast
(
'
from server
'
);
...
...
@@ -80,5 +80,5 @@ ws.on('open', function () {
});
ws
.
on
(
'
message
'
,
function
(
msg
)
{
sys
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
util
.
debug
(
'
Got message:
'
+
utils
.
decode
(
msg
));
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment