small wrapper around JavaScript's WebSocket API
var socket = new CraftSocket("ws://" + location.hostname + ":" + port + "/");
// The CraftSocket Object takes any ws:// or wss:// address socket.send('Hello GoGo', res => console.log(res));
// First argument is the message you want to send
// Second argument is a callback function with the server response as a parameter socket.recieve(msg => console.log(msg));
// every time the server sends a message,
// the callback function will fire with the server's response as a parameter