File: chat-websocket/node_modules/socket.io/node_modules/socket.io-client/test/worker.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/socket.io/node_modules/socket.io-client/test/worker.js   Download  
File: chat-websocket/node_modules/socket.io/node_modules/socket.io-client/test/worker.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 390 bytes
 

Contents

Class file image Download
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'); }