Permalink
Browse files

added net.createServer

  • Loading branch information...
1 parent 2c5caaf commit 951eaf79bc5e7696d3fc4635d8cc044b70b1d23b @jamescarr committed Sep 19, 2010
Showing with 9 additions and 0 deletions.
  1. +8 −0 snippets/javascript/net.createServer.snippet
  2. +1 −0 snippets/javascript/writeHead.snippet
@@ -0,0 +1,8 @@
+net.createServer(function(${1:socket}){
+ $1.setEncoding("${2:utf8}");
+ $1.on('data', function(data){
+ });
+ $1.on('end', function(){
+
+ });
+}).listen(${3:8124}, '${4:127.0.0.1}');
@@ -0,0 +1 @@
+writeHead(${1:200}, ${2:{'Content-Type':'text/plain'}});

0 comments on commit 951eaf7

Please sign in to comment.