Lines Matching refs:WebSocket
6 * Websock is similar to the standard WebSocket object but Websock
21 // Load Flash WebSocket emulator if needed
23 // To force WebSocket emulator even when native WebSocket available
25 // To enable WebSocket emulator debug:
28 if (window.WebSocket && !window.WEB_SOCKET_FORCE_FLASH) {
32 window.WebSocket = window.MozWebSocket;
34 /* no builtin WebSocket so load web_socket.js */
53 this._websocket = null; // WebSocket object
59 this._mode = 'base64'; // Current WebSocket mode: 'binary', 'base64'
226 if (bt && ('binaryType' in WebSocket.prototype ||
227 !!(new WebSocket(ws_schema + '://.').binaryType))) {
246 throw new Error('WebSocket binary sub-protocol requested but not supported');
254 Util.Error('Skipping unsupported WebSocket binary sub-protocol');
263 throw new Error("Only WebSocket binary sub-protocol was requested and is not supported.");
275 this._websocket = new WebSocket(uri, protocols);
308 if ((this._websocket.readyState === WebSocket.OPEN) ||
309 (this._websocket.readyState === WebSocket.CONNECTING)) {
310 Util.Info("Closing WebSocket connection");