public async Task<AsObject> InvokeConnectResultAsync(int invokeId, AsObject param)
        {
            //Write ServerBW & ClientBW
            var ServerBW = new WindowAcknowledgementSize(245248000);
            WriteProtocolControlMessage(ServerBW);
            var ClientBW = new PeerBandwidth(250000, 2);
            WriteProtocolControlMessage(ClientBW);

            SetChunkSize(50000);
            var connectResult = new InvokeAmf0
            {
                MethodCall = new Method("_result", new []{param}),
                InvokeId = invokeId
            };

            return (AsObject)await QueueCommandAsTask(connectResult, 3, 0);
        }
        public async Task<AsObject> ConnectResultInvokeAsync(object[] parameters)
        {
            //Write ServerBW & ClientBW
            var ServerBW = new WindowAcknowledgementSize(245248000);
            WriteProtocolControlMessage(ServerBW);
            var ClientBW = new PeerBandwidth(250000, 2);
            WriteProtocolControlMessage(ClientBW);

            SetChunkSize(50000);
            var connectResult = new InvokeAmf0
            {
                MethodCall = new Method("_result", new object[1] {
                    new AsObject
                               {
                                   { "objectEncoding", 3.0                    },
                                   { "level", "status"                        },
                                   { "details", null                          },
                                   { "description", "Connection succeeded."   },
                                   { "DSMessagingVersion", 1.0                },
                                   { "code", "NetConnection.Connect.Success"  },
                                   { "id", Uuid.NewUuid() }
                               }
                }),
                InvokeId = GetNextInvokeId()
            };

            return (AsObject)await QueueCommandAsTask(connectResult, 3, 0);
        }