11 Commits

Author SHA1 Message Date
fiatjaf
70dfeea299 127.0.0.1 also defaults to ws:// 2024-08-19 11:53:18 -03:00
fiatjaf
92b85c9483 fix localhost trick from 8aaf5b. 2024-07-04 16:29:20 -03:00
P. Reis
8aaf5b8f98
Append 'ws://' prefix if url starts with localhost (#132)
* test: refactor NormalizeURL tests

* feat(NormalizeURL): add 'ws://' prefix if url starts with 'localhost'

* test(NormalizeURL): add 'ws://' prefix if url is localhost
2024-07-04 12:06:24 -03:00
fiatjaf
ddc50028c3
add NormalizeOKMessage() helper. 2023-11-28 22:23:51 -03:00
fiatjaf
5e24b24442
improve relay URL normalization. 2023-03-14 21:56:40 -03:00
Dylan Cant
de78b2c054 added function to fetch NIP-11 documents 2023-01-31 14:06:15 -03:00
fiatjaf
b2885d57cd
fix blank case on NormalizeURL(). 2022-11-19 07:19:10 -03:00
fiatjaf
0d7a4b258a
fix normalize and add a test. 2022-11-18 14:18:37 -03:00
fiatjaf
329b8d44d2
move stuff back from nostr package to top level.
because otherwise the path must be specified as github.com/fiatjaf/go-nostr/nostr, which is annoying.
2022-11-04 08:22:13 -03:00
BitcoinCoderBob
9549c3624a
nostr package, readme updates accordingly, matching example program (#14) 2022-10-12 17:24:30 -03:00
fiatjaf
d131e8460e move everything to the same directory. 2022-01-02 08:44:18 -03:00