Skip to content

Conversation

@L4B0MB4
Copy link
Contributor

@L4B0MB4 L4B0MB4 commented Dec 6, 2024

This pull request includes several changes aimed at refactoring the websocket handling and updating dependencies in the project. The main changes involve replacing the custom websocket implementation with a utility package and updating the version of a dependency.

Websocket Handling Refactoring:

  • cmd/queryer/main.go: Replaced userEventHandler with postEventHandler and updated the websocket controller to use the new utility package.
  • pkg/query/eventhandling/post.go: Changed the type of wsConnections to use the interfaces.WebsocketConnecter interface from the utility package. [1] [2]
  • Removed the custom websocket controller and connection handling files (pkg/query/httphandler/controller/websocket_controller.go, pkg/query/websocket/auth_req.go, pkg/query/websocket/websocket_connection.go). [1] [2] [3]
  • pkg/query/httphandler/handler.go: Updated the HttpHandler to use the websocket controller from the utility package.

Dependency Updates:

  • go.mod: Updated the version of github.com/PRYVT/utils to v0.4.0.

@L4B0MB4 L4B0MB4 merged commit a5c66fc into master Dec 6, 2024
4 checks passed
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