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

refactor: simplify events #12

Merged
merged 3 commits into from
Sep 7, 2022
Merged

refactor: simplify events #12

merged 3 commits into from
Sep 7, 2022

Conversation

exuanbo
Copy link
Contributor

@exuanbo exuanbo commented Sep 6, 2022

No description provided.

@@ -30,6 +42,13 @@ export const createSocketServer = (httpServer: HTTPServer, persistence?: Persist
cors: process.env.NODE_ENV === 'development' ? {} : undefined
})

io.use((socket, next) => {
// handle auth and room permission
const { roomName } = socket.handshake.query as QueryParameters
Copy link
Contributor

Choose a reason for hiding this comment

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

we need check queryParameters in the runtime

@himself65 himself65 merged commit 1d59bc7 into TexteaInc:main Sep 7, 2022
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.

None yet

2 participants