Add snapshot of release-1.0.3 sources

This commit is contained in:
Mohamed Hegazy
2014-07-12 15:32:26 -07:00
parent 99ec3a9688
commit 79727ee12f
13130 changed files with 2079574 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
///<reference path='node.d.ts'/>
import http = require("http");
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
+14
View File
@@ -0,0 +1,14 @@
===== TypeScript Sample: Node.js =====
=== Overview ===
This sample implements a very basic node.js application using TypeScript
=== Running ===
For HttpServer
tsc --module commonjs HttpServer.ts
node HttpServer.js
For TcpServer
tsc --module commonjs TcpServer.ts
node TcpServer.js
+9
View File
@@ -0,0 +1,9 @@
///<reference path='node.d.ts'/>
import net = require('net');
var server = net.createServer(function (socket) {
socket.write('Echo server\r\n');
socket.pipe(socket);
});
server.listen(1337, '127.0.0.1');
+1079
View File
File diff suppressed because it is too large Load Diff