실제 서버에 붙어 확인한 내용이다. 공식 문서에 없는 것들이 있다.
-
핸드셰이크는
pingInterval=25000,pingTimeout=60000. 생존 시한이 85초로 넉넉하다. -
네임스페이스는 루트(
/)다. 세션 URL에 경로가 없다. -
인증은 핸드셰이크 쿼리의
auth하나로 끝난다. 여기에 더해 루트 네임스페이스로 CONNECT를 보내면 인증 없는 새 연결로 취급해 다음과 같이 응답한다.
| import wmi | |
| def avg(value_list): | |
| num = 0 | |
| length = len(value_list) | |
| for val in value_list: | |
| num += val | |
| return num/length | |
| // disable :hover on touch devices | |
| // based on https://gist.github.com/4404503 | |
| // via https://twitter.com/javan/status/284873379062890496 | |
| // + https://twitter.com/pennig/status/285790598642946048 | |
| // re http://retrogamecrunch.com/tmp/hover | |
| // NOTE: we should use .no-touch class on CSS | |
| // instead of relying on this JS code | |
| function removeHoverCSSRule() { | |
| if ('createTouch' in document) { | |
| try { |
I took down this Gist due to concerns about the security of the encryption/decryption part of this code (see comments below).
Rob Napier (@rnapier) has created a publicly available class that provides similar AES encryption/decryption functionality at https://github.com/rnapier/RNCryptor.