-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
If you refer to this test that I have added :
Line 82 in 14e1c54
func TestContext_WriteMessageToSocket(t *testing.T) { |
It is currently implemented the same way, that is HTTP and web sockets both accept only context in their handlers. Modifying the signature will be a breaking change. However we can go around it. Wanted to hear his/her's internal implementation. It is not very robust in current situation(user has to himself write and handle multiple edge cases) and there is no observability as well.
Also web sockets, HTTP, gRPC all follow a similar hander signature for abstraction, with *gofr.Context
support.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request