Home | History | Annotate | Download | only in embenchen

Lines Matching refs:websocket

4524                 throw new Error('WebSocket URL must be in the format ws(s)://address:port');
4530 // create the actual websocket object and connect
4532 // runtimeConfig gets set to true if WebSocket runtime configuration is available.
4533 var runtimeConfig = (Module['websocket'] && ('object' === typeof Module['websocket']));
4540 if ('string' === typeof Module['websocket']['url']) {
4541 url = Module['websocket']['url']; // Fetch runtime WebSocket URL config.
4549 // Make the WebSocket subprotocol (Sec-WebSocket-Protocol) default to binary if no configuration is set.
4553 if ('string' === typeof Module['websocket']['subprotocol']) {
4554 subProtocols = Module['websocket']['subprotocol']; // Fetch runtime WebSocket subprotocol config.
4566 var WebSocket = ENVIRONMENT_IS_NODE ? require('ws') : window['WebSocket'];
4567 ws = new WebSocket(url, opts);
4866 // create a copy of the incoming data to send, as the WebSocket API