added websocket auto frame encoder