Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 支持websocket #2494 #2514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaoxuwan
Copy link
Collaborator

No description provided.

@yaoxuwan yaoxuwan marked this pull request as draft August 22, 2024 13:51
@yaoxuwan yaoxuwan force-pushed the issue_2494 branch 14 times, most recently from 71d3931 to 06fe8fb Compare August 27, 2024 12:18
@yaoxuwan yaoxuwan marked this pull request as ready for review August 27, 2024 12:20
}

override fun registerStompEndpoints(registry: StompEndpointRegistry) {
registry.addEndpoint(USER_ENDPOINT, APP_ENDPOINT)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么要setAllowedOriginPatterns两次

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是两个不同的endpoint,需要单独设置

@yaoxuwan yaoxuwan force-pushed the issue_2494 branch 2 times, most recently from 17f5be0 to ef2e5ba Compare September 3, 2024 03:25
logger.warn("this session[$sessionId] already in cacheSession")
return
}
cacheSessionList.add(sessionId)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边containsadd两个操作在并发执行时会不会导致重复添加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants