Skip to content

How to run websocket at /? #7

Description

@and7ey

I am trying to replace default /ws handler with / or with the empty value. But it doesn't work.

With the code below the server is still available at /ws.

  server_config := &mcwss.Config { 
		HandlerPattern: "/",
		Address: ":8000",
	}
  server := mcwss.NewServer(server_config) 

But if I replace / with /w, then it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions