fix for latest jsx and asn1
support event and ack for socketio v0;
support handshark for socketio v1.