Skip to content

Instantly share code, notes, and snippets.

@janmonschke
janmonschke / smarttv-debugging-server.js
Created February 20, 2013 02:24
A simple debugging server for the Samsung SmartTV platform. Simply start the server and then connect your machine to the TV and it'll print out (and save) everything the TV sends
var net = require('net');
var fs = require('fs');
// file name for the current log
var fileName = __dirname + '/log_' + new Date().getTime();
// Start a TCP Server
var server = net.createServer(function (socket) {
// Log what the TV sends