fiatjaf
ccbb44989f
get rid of WriteJSON() and replace calls with manually marshaled envelopes.
2023-05-09 17:02:22 -03:00
Marc Tarnutzer
69b9d82bb1
check if messages are compressed on receive
2023-05-06 01:48:01 +02:00
Marc Tarnutzer
c86e907142
enable compression by default
2023-05-05 22:00:25 +02:00
Marc Tarnutzer
ee9502bc3e
fix: outgoing pings
2023-05-05 12:14:29 +02:00
Marc Tarnutzer
f152a5e0c7
simplify connection close
2023-05-04 23:54:39 +02:00
Marc Tarnutzer
9c01ead91f
switch to gobwas/ws, add compression
2023-05-04 23:51:15 +02:00
fiatjaf
326d2790de
rename interface{} to any.
2023-04-12 12:14:24 -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
Honza Pokorny
a3df2cb893
Add mutexes around websockets
...
We replace the bare websocket.Conn type with a new Connection type which
implements `WriteJSON`, `WriteMessage`, and `Close`. The Connection
type adds mutexes around writes since gorilla doesn't support concurrent
writes to websockets.
Signed-off-by: Honza Pokorny <honza@pokorny.ca>
2022-01-12 12:19:33 -03:00