当前位置:网站首页>Im web demo invite end hang up error avoidance
Im web demo invite end hang up error avoidance
2022-06-23 02:45:00 【A good man】
From now on Downloaded from the official website IM web End Demo If you send an invitation and hang up, the following error will be reported , This will cause the hang up exception , So how does this problem arise and how to avoid it ?
Cause analysis
Print as shown in the following figure res We know the value of trtcCalling hangup Method returns a with no return value promise, An error will be reported if the value is taken later , Cause exception
So is it normal for us to comment out this value , After testing . Note that you can hang up normally , But there is a problem , The page after hang up does not show hang up ( Cancel the call ) The news of
You can see from the commented out code logic , The reason for taking this value is to put this message pusher To the message list . But how can I get and add the return value without it at present .
Avoid scheme
At present, there seems to be no good way to take values , We can only save the country by curving . I think that as long as the hang up signaling is successfully sent , You can pull the message list again . So I refreshed the next page and pulled the message list after logging in again , Sure enough, I got it .
There is no need to show off here , Adjust directly after hanging up getMessageList Since the message list is not updated, the direct call will report ’ No more news ‘ A hint of , After the test, the callback after the hang up succeeds is added with this.$store.dispatch('checkoutConversation', this.currentConversation.conversationID) The message display is normal after hanging up .
thus , This problem is perfectly avoided , If it helps you , Please give me a compliment !
边栏推荐
- February 2, 2022: the closest binary search tree value II. Given a non empty two
- February 1, 2022: painting house II. If there is a row of houses, N in total, each
- A penetration of an internal self built shooting range
- 5g core network and core network evolution
- WebService details
- Deep analysis of time complexity
- Reinforcement learning series (IV) -policygradient example
- Direct collection - super easy to use domestic color matching website
- EDI project cases of customers in medical device industry
- PHP Base64 image processing Encyclopedia
猜你喜欢

Soft exam information system project manager_ Information system comprehensive testing and management - Senior Information System Project Manager of soft test 027

Information theory and coding

Stop automatically after MySQL starts (unable to start)

Application and challenge of ten billion level map data in Kwai security intelligence

Performance test -- Jenkins environment construction for 15jmeter performance test

Vulnhub DC-5

Reptile lesson 1

Docker installs mysql5.7 and mounts the configuration file

Understand GB, gbdt and xgboost step by step

Quick sorting C language code + auxiliary diagram + Notes
随机推荐
8. greed
Learning notes of recommendation system (1) - Collaborative Filtering - Theory
Understand GB, gbdt and xgboost step by step
PNAs: power spectrum shows obvious bold resting state time process in white matter
The difference between script in head and body
What is sitelock? What is the function?
Some people are crazy, others are running away, and open source software is both hot and cold
Summary of website navigation design and website link optimization
How to generate DataMatrix code in batch through TXT file
Goframe framework (RK boot): Based on cloud native environment, distinguish configuration files (config)
Salesforce file (II) custom development fileUpload
51. numerical arrangement
Extract NTDs with volume shadow copy service dit
Solve the problem that QQ flash photos cannot be saved
Buuctf misc-[actf freshman competition 2020]outline
Three ways to get class
Reinforcement learning series (III) -gym introduction and examples
How to use fortress on mobile devices
2022-02-05: the k-th decimal number of dictionary order. Given integers n and K, find 1
SetTimeout and setinterval execution time