Skip to content

Instantly share code, notes, and snippets.

@Jxck
Jxck / .gitignore
Created January 24, 2013 16:32
Socket.IO sample for Node.js_jp ML
node_modules
@shigeki
shigeki / index.html
Created January 25, 2013 08:30
socket.io を使ったデータの受け渡し (HTTP GET -> WS リレーサーバ対応)
<!DOCTYPE html>
<html>
<head>
<title>Standalone.sample</title>
<script src="http://localhost:8080/socket.io/socket.io.js"></script>
<script type="text/javascript">
var appname = io.connect('http://localhost:8080/appname');
appname.on('available_channel', function(channels) {
console.log('channels', channels);
// リスト先頭のチャネルIDを利用する