关于使用长连接的情况下,关闭Socket
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start by locating ws.Client and reviewing the visibility of its start, disconnect, and reconnect methods. Compare the requested edit and deletion lifecycle in the issue with the current public API. Done means callers can perform the required disconnect/reconnect operations externally, with the behavior confirmed by the project’s existing checks.
Written by the indexing model from the issue text.
Description
我司有个场景,需要可以在页面通过配置的形式接入飞书机器人,并且采用长连接的方式监听推送过来的事件消息,所以涉及到以下问题:
- 首次创建时,需要构建ws.Client,并start
- 编辑时,需要先把原来的ws.Client进行reconnect,即先disconnect,再start
- 删除时,需要把原来的ws.Client进行disconnect,并置空
对于以上3点,1已经实现,2和3存在问题:
- ws.Client有start、disconnect、reconnect三个方法,但是disconnect、reconnect这两个方法被protected修饰了,外部无法调用
请问一下:
能够将上述两个方法也变成public,如果不可以,还方便描述一下原因。谢谢
- Dominant language
- Java
- Stars
- 311
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/oapi-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
larksuite/oapi-sdk-java#197 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
larksuite/oapi-sdk-java#196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
larksuite/oapi-sdk-java#191 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
larksuite/oapi-sdk-java#149 ·
-
接口响应类型错误Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
larksuite/oapi-sdk-java#79 ·
All issues in larksuite/oapi-sdk-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
grimmory-tools/grimmory#2850 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aoqia194/leaf-loader#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/streampark#4521 ·
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100