src/LiveDevelopment/MultiBrowserImpl/transports/remote/NodeSocketTransportRemote.js
function (msgStr) {
            if (this._ws) {
                // See comment in `connect()` above about why we wrap the message in a transport message
                // object.
                this._ws.send(JSON.stringify({
                    type: "message",
                    message: msgStr
                }));
            } else {
                console.log("[Brackets LiveDev] Tried to send message over closed connection: " + msgStr);
            }
        }
function (msgStr) {
            if (this._ws) {
                // See comment in `connect()` above about why we wrap the message in a transport message
                // object.
                this._ws.send(JSON.stringify({
                    type: "message",
                    message: msgStr
                }));
            } else {
                console.log("[Brackets LiveDev] Tried to send message over closed connection: " + msgStr);
            }
        }
function ( msgStr ) { if ( this . _ws ) { // See comment in `connect()` above about why we wrap the message in a transport message // object. this . _ws . send ( JSON . stringify ( { type : "message" , message : msgStr } ) ) ; } else { console . log ( "[Brackets LiveDev] Tried to send message over closed connection: " + msgStr ) ; } }
Sends a message over the transport.
@param {string} msgStr The message to send.
Sends a message over the transport .