From fa001338251e8f37fcd8877774b055124d46e9ea Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 11 May 2023 10:09:43 -0300 Subject: [PATCH] websocket to send text, not binary. --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 6b525b0..b61a7cc 100644 --- a/connection.go +++ b/connection.go @@ -88,7 +88,7 @@ func NewConnection(ctx context.Context, url string, requestHeader http.Header) ( writer := wsutil.NewWriter( conn, state, - ws.OpBinary, + ws.OpText, ) writer.SetExtensions(&msgState)