websocket to send text, not binary.

This commit is contained in:
fiatjaf 2023-05-11 10:09:43 -03:00
parent 0c06788672
commit fa00133825
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -88,7 +88,7 @@ func NewConnection(ctx context.Context, url string, requestHeader http.Header) (
writer := wsutil.NewWriter( writer := wsutil.NewWriter(
conn, conn,
state, state,
ws.OpBinary, ws.OpText,
) )
writer.SetExtensions(&msgState) writer.SetExtensions(&msgState)