<script>
function processJSON (json) {
// Do something with the JSON response
};
</script>
<script src='http://www.girls.hustonline.net?
callback=processJSON&name=jimmy&age=18'></script>
var sendJSONP = function(url,callbackName){
var script= docuemnt.createELement('script');
script.src = `${url}&callback=${callbackName}`;
document.head.appendChild(script);
}
var sayName = function(name){
console.log(`your name is ${name}`);
}
sendJSONP('http://girls.hustonline.net?name=jimmy','sayName');
socket.send("Hello server!");
socket.send(JSON.stringify({'msg': 'payload'}));
var buffer = new ArrayBuffer(128);
socket.send(buffer);
var intview = new Uint32Array(buffer);
socket.send(intview);
var blob = new Blob([buffer]);
socket.send(blob);