Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Rocket.Chat default port for a bot? #129

Description

@mikebdp2

I'm setting up a bot to connect to a server which doesn't belong to me
and this server is using the default settings for almost everything including ports.
Here's my current config:

...
func main() {
        config := &rocket.Config{
                Server:   "chat.server.com",
                Port:     "?????",
                User:     "test-1-bot",
                Email:    "test-1-bot@server.com",
                Password: "********",
                UseTLS:   false,
                Debug:    os.Getenv("DEBUG") != "",
        }
        rocket.Run(config)
}

What is a default ROCKET_PORT value: 3000, 80 or 443 ?
I tried using them all, but am getting the following results:

3000: login err: Post http://chat.server.com:3000/api/v1/login: dial tcp ...*:3000: connect: connection refused
80: login err: Request error: 405 Method Not Allowed
443: login err: Request error: 400 Bad Request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions