Skip to content

❔ Question: Build failure on latest master commit #368

@Mayuri-Mense

Description

@Mayuri-Mense

❔ 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:

  1. Is AddHttpHandler still a supported method?
  2. 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(&centralSystem))

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions