Some more functions, not recommend to use. WS handshake missing, processevent not finished