Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it configurable #8

Merged
merged 6 commits into from
Sep 8, 2022
Merged

Make it configurable #8

merged 6 commits into from
Sep 8, 2022

Conversation

ninjamarcus
Copy link
Contributor

No description provided.

sockets.go Outdated
@@ -34,27 +34,18 @@ import (
"time"
)

var WriteWait = time.Second * 10
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a little more DRY by using the following notation:

`

var (
    // Time allowed to write a message to the peer.
    writeWait = 10 * time.Second

    // Time allowed to read the next pong message from the peer.
    pongWait = 60 * time.Second

    // Send pings to peer with this period. Must be less than pongWait.
    pingPeriod = (pongWait * 9) / 10

    // Maximum message size allowed from peer.
    maxMessageSize = 2560
)

`

@Syleron Syleron merged commit d9e56e9 into Syleron:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants