Hi @rarindam,
Can you share a code sample to understand exactly your problem. In any case, if it’s just a problem of redefining “rpc”, why don’t you just import on service file, websocket rpc as ws_rpc or something else just to avoid shadowing of rpc. Something like that:
from nameko.rpc import rpc
from nameko.web.websocket import rpc as ws_rpc