Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

优化错误提示 #1

Open
lmk123 opened this issue Apr 18, 2016 · 0 comments
Open

优化错误提示 #1

lmk123 opened this issue Apr 18, 2016 · 0 comments

Comments

@lmk123
Copy link
Member

lmk123 commented Apr 18, 2016

https://github.com/Selection-Translator/connect.io/blob/97d90303fe25e59ca16d4b041e9382a934301357/libs/port.js#L54-L64

当连接被断开后,再次调用 client.send() 会直接抛出一个错误,但如果调用时传入了 needResponse:true 参数的话,此时就不应该 throw err,应该 return Promise.reject(err)

@lmk123 lmk123 assigned lmk123 and unassigned lmk123 Apr 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant