also handler open/close/error WebSocket event and pass it to as3