Using socket.io and jQuery how do I send a file (binary array) to my server? This is what I've tried:
<script type="text/javascript" charset="utf-8">
    $(document).ready(function () {
        var socket = io.connect('http://' + document.domain + ':' + location.port);
        $('form#upload_form').submit(function (event) {
            //var File fileObj = new File($('#ssa_data').val());
            socket.emit('certificate_upload', {transport_key: $('#small_file').val()});
            return false;
        });
    });
</script>
