Skip to content

Commit

Permalink
added tests, some restructuring and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
George Makroglou committed Jul 24, 2024
1 parent b642259 commit 8f836dc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ func withPath(s *SocketServer) {

```

To override the server type (json | text):
```go
func withType(s *SocketServer) {
s.Type = "text"
}

```

Then you can start a server with your custom configuration:

Expand All @@ -84,7 +77,7 @@ import (
)

func main() {
s := server.New(CustomEvents{}, withPort, withPath, withType);
s := server.New(CustomEvents{}, withPort, withPath);

if err := s.Start(); err != nil {
log.Fatalln("Failed to start socket server: ", err)
Expand Down

0 comments on commit 8f836dc

Please sign in to comment.