Wedsocket emit from HTTP controller not working

I went through the document and but i get object subscriptions as null despiting have channel and topic in websock.js

code in HTTP controller.
const subscriptions = Ws.getChannel(‘chat’).topic(‘useradded’)

Code in socket.js
Ws.channel(‘chat’,‘TodoUpdateController’)