Skip to content

Commit

Permalink
Merge branch 'master' of nodester.com:/node/git/tuna/464-92e501a9b101…
Browse files Browse the repository at this point in the history
…69b311db6e49ce7a1f07

Conflicts:
	boatduinode.js
  • Loading branch information
supertunaman committed Jan 1, 2012
2 parents 03f136a + 35234cc commit 74a59fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.nodester.appconfig
27 changes: 7 additions & 20 deletions boatduinode.js
@@ -1,24 +1,5 @@
/* Copyright (C) 2011 by ath (@supertunaman)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. */

var http = require('http'); var http = require('http');
<<<<<<< HEAD
var io = require('socket.io'); var io = require('socket.io');
var express = require('express'); var express = require('express');


Expand Down Expand Up @@ -50,3 +31,9 @@ socket.on('connection', function(client) {


}) })
}); });
=======
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\nApp (boatduinode) is running..');
}).listen(8617);
>>>>>>> 35234ccb07ae7934a5b974b1db955cd8a1401075
2 changes: 1 addition & 1 deletion boatduinode.rb
Expand Up @@ -24,7 +24,7 @@


@serial = SerialPort.new("/dev/ttyUSB0", 9600, 8, 1, SerialPort::NONE) @serial = SerialPort.new("/dev/ttyUSB0", 9600, 8, 1, SerialPort::NONE)
#@ws = WebSocket.new "ws://localhost:8080/socket.io/websocket" #@ws = WebSocket.new "ws://localhost:8080/socket.io/websocket"
@ws = WebSocket.new "ws://boatduinode.nodester.com/socket.io/websocket" @ws = WebSocket.new "ws://boatduinode.nodester.com:80/socket.io/websocket"
puts "Connected" puts "Connected"


def up def up
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Expand Up @@ -18,7 +18,7 @@ <h3>Use arrow keys to control the boat!</h3>
<script src="http://boatduinode.nodester.com/socket.io/socket.io.js"></script> <script src="http://boatduinode.nodester.com/socket.io/socket.io.js"></script>
<script> <script>
//var socket = new io.Socket("localhost"); //var socket = new io.Socket("localhost");
var socket = new io.Socket("http://boatduinode.nodester.com"); var socket = new io.Socket("http://boatduinode.nodester.com:80");
socket.connect(); socket.connect();
socket.on('connect', function(){ }) socket.on('connect', function(){ })
socket.on('message', function(){ }) socket.on('message', function(){ })
Expand Down

0 comments on commit 74a59fb

Please sign in to comment.