Skip to content

Instantly share code, notes, and snippets.

View Tschrock's full-sized avatar

Tyler Schrock Tschrock

  • Progressive
  • Ohio, USA
  • 05:29 (UTC -04:00)
View GitHub Profile
@hagino3000
hagino3000 / client.js
Created December 8, 2011 18:42
WebSocket with binary data
var socket = null;
function bootstrap() {
// 適当な図形を描画
var c = document.getElementById('mycanvas');
var ctx = c.getContext('2d');
ctx.globalalpha = 0.3;
for(var i=0; i<1000; i++) {
ctx.beginPath();