Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
FlashWS.prototype.write = function() {
var self = this, args = arguments;
WebSocket.__addTask(function () {
WS.prototype.write.apply(self, args);
});
};
self.ready(function(){
WebSocket.__addTask(function () {
self.ws = new WebSocket(self.uri());
self.addEventListeners();
});
});
});