parent
3486f6bcaf
commit
cd7d80c591
1 changed files with 1368 additions and 104 deletions
|
|
@ -123,8 +123,12 @@ func defaultSendingMethodHandler(ctx context.Context, method string, req Request
|
|||
// Create the result to unmarshal into.
|
||||
// The concrete type of the result is the return type of the receiving function.
|
||||
res := info.newResult()
|
||||
if err := call(ctx, req.GetSession().getConn(), method, params, res); err != nil {
|
||||
return nil, err
|
||||
if method == methodSubscriptionsListen {
|
||||
callSubscriptionsListen(ctx, req.GetSession().getConn(), method, params)
|
||||
} else {
|
||||
if err := call(ctx, req.GetSession().getConn(), method, params, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return res, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue