buttercat1791 on Nostr: GRAIN uses the `x/net/websocket` package for handling connections. I believe, by ...
GRAIN uses the `x/net/websocket` package for handling connections. I believe, by default, the package rejects connections whose `Origin` header isn't a valid URL. That is likely what is killing the connections from Amethyst.
I don't think Amethyst is doing anything wrong; GRAIN probably needs to update its handshake process to correctly handle mobile app origins. I've already sent
OceanSlim (npub1zmc…7f60) a DM with the details that I could find.
Published at
2024-08-01 14:24:56Event JSON
{
"id": "2a7072d329fb3fcbfad8e082532d1dd6167997c8a67e51df65045280d27507c4",
"pubkey": "70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9",
"created_at": 1722522296,
"kind": 1,
"tags": [
[
"e",
"d9f85bf2774e16d58a3e615381f6012c719962c282b047bd3cb0561354ff69a4",
"wss://wheat.happytavern.co/",
"root"
],
[
"e",
"015dcc5a1ee49639b249536bd8d8f22ffba43a1cccc3cde20868b4b3424c1465",
"wss://nostr.mom/",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"",
"mention"
],
[
"p",
"16f1a0100d4cfffbcc4230e8e0e4290cc5849c1adc64d6653fda07c031b1074b",
"wss://wheat.happytavern.co/",
"mention"
]
],
"content": "GRAIN uses the `x/net/websocket` package for handling connections. I believe, by default, the package rejects connections whose `Origin` header isn't a valid URL. That is likely what is killing the connections from Amethyst.\n\nI don't think Amethyst is doing anything wrong; GRAIN probably needs to update its handshake process to correctly handle mobile app origins. I've already sent nostr:npub1zmc6qyqdfnllhnzzxr5wpepfpnzcf8q6m3jdveflmgruqvd3qa9sjv7f60 a DM with the details that I could find.",
"sig": "bd626120a4e321ecf7fdb822446e32fc2a5965b581202eb3e743b07615ab6193b1b285fced53d49de95f2efbcf4f9bc48c63a5e4f52b49078827414f238422c4"
}