good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 110e14e6 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

don't crush on streamable ws (#2268)

parent c12ef447
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,13 @@ func (h *handler) handleBatch(msgs []*jsonrpcMessage, stream *jsoniter.Stream) {
break
}
}
if !allMethodsAreThreadSafe && stream == nil {
_ = h.conn.writeJSON(context.Background(), jsonrpcMessage{Version: vsn, ID: null, Error: &jsonError{
Code: -32601,
Message: "streamable methods are not supported on websockets. help us to implement",
}})
return
}
answers := make([]*jsonrpcMessage, 0, len(msgs))
if allMethodsAreThreadSafe {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment