Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added net.createServer

  • Loading branch information...
commit 951eaf79bc5e7696d3fc4635d8cc044b70b1d23b 1 parent 2c5caaf
@jamescarr authored
View
8 snippets/javascript/net.createServer.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}');
View
1  snippets/javascript/writeHead.snippet
@@ -0,0 +1 @@
+writeHead(${1:200}, ${2:{'Content-Type':'text/plain'}});
Please sign in to comment.
Something went wrong with that request. Please try again.