Closed Semesse closed 1 year ago
Using PickID(id) on every call works correctly, but if I try to assign IDs on the connection level I'll get an error
PickID(id)
connOpt := jsonrpc2.OnSend(func(req *jsonrpc2.Request, res *jsonrpc2.Response) { if req != nil { req.ID = jsonrpc2.ID{ Str: uuid.NewString(), IsString: true, } } })
jsonrpc2: ignoring response #"93eef3d4-9350-11ed-a1eb-0242ac120002" with no corresponding request
staticcheck fails but that is more to do with staticcheck not working properly on go 1.16 code it seems. Wil lland this.
Using
PickID(id)
on every call works correctly, but if I try to assign IDs on the connection level I'll get an error