Sha256: 5ca34f059de4426123feb14e4f42a61f064fdaf0cfbf53a1a8f588366bb3532e
Contents?: true
Size: 390 Bytes
Versions: 18
Compression:
Stored size: 390 Bytes
Contents
importScripts('/socket.io/socket.io.js'); self.onmessage = function (ev) { var url = ev.data , socket = io.connect(url); socket.on('done', function () { self.postMessage('done!'); }); socket.on('connect_failed', function () { self.postMessage('connect failed'); }); socket.on('error', function () { self.postMessage('error'); }); socket.send('woot'); }
Version data entries
18 entries across 18 versions & 3 rubygems