Skip to content
Browse files

Merge pull request #2 from Weltschmerz/master

Added a node implementation that uses the `ws` module
  • Loading branch information...
2 parents 80b9ec9 + d47ded9 commit 1f79c42a2f15c0a8086ba3aa0031adc3a332a7c3 @ericmoritz committed Jun 13, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 competition/wsdemo-ws.js
View
14 competition/wsdemo-ws.js
@@ -0,0 +1,14 @@
+#!/usr/bin/env node
+
+var ws = require('ws')
+, wss = new ws.Server({port:8000})
+
+wss.on('connection', function(con) {
+
+ con.on('message', function() {
+
+ con.send.apply(this, arguments)
+
+ })
+
+})

0 comments on commit 1f79c42

Please sign in to comment.
Something went wrong with that request. Please try again.