-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Description
❔ What is your question?
When trying to build the server, I'm encountering compilation errors related to the AddHttpHandler method which appears to be undefined on the ws.Server type.
./server.go:54:9: server.AddHttpHandler undefined (type ws.Server has no field or method AddHttpHandler)
./server.go:57:9: server.AddHttpHandler undefined (type ws.Server has no field or method AddHttpHandler)
Could you please clarify:
- Is
AddHttpHandlerstill a supported method? - If not, what is the current recommended way to add HTTP handlers to the server?
I had added HTTP handlers to the WebSocket server implementation, like below
server.AddHttpHandler("/v1/chargepoint", handler.HandleFunc(¢ralSystem))
Which OCPP version referring to?
- OCPP 1.6
- OCPP 2.0.1
Are you using any OCPP extensions?
- OCPP 1.6 Security
- OCPP 1.6 Plug and Charge
👀 Have you spent some time to check if this question has been asked before?
- I checked and didn't find a similar issue
Metadata
Metadata
Assignees
Labels
No labels