Skip to content

Hardcoded Gateway URL #51

@kawaii

Description

@kawaii

Currently, we hardcode the gateway URL like so;

#| Host to which to connect. Can be overridden for testing e.g.
has Str $.ws-host = 'gateway.discord.gg';

According to the documentation this behaviour is wrong. and in actuality we should be calling the Get Gateway or Get Gateway Bot endpoints for this information.

https://discord.com/developers/docs/topics/gateway#connecting-gateway-url-params

https://discord.com/developers/docs/topics/gateway#get-gateway
https://discord.com/developers/docs/topics/gateway#get-gateway-bot

I think it's still useful to be able to override the gateway URL, so we should keep that in mind when refactoring.

Metadata

Metadata

Assignees

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