Created
August 30, 2012 20:13
-
-
Save ntotten/3539752 to your computer and use it in GitHub Desktop.
Using Node.js on Windows Azure as a WebSocket server for Windows 8 Store Apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var WebSocketServer = require('ws').Server | |
| , wss = new WebSocketServer({port: process.env.PORT}); | |
| wss.on('connection', function(ws) { | |
| ws.on('message', function(message) { | |
| console.log('received: %s', message); | |
| }); | |
| ws.send('something'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment