Dynamic url for SocketIo

hello… i’have a question
My ionic

  1. Ionic V3

  2. Using Socket.io

  3. Using NodeJs for handling request from API and Socket.io

  4. have 2 different files for socket.io (1. User.js, 2. Customer.js) and different url to (1. io.of(’/users’) and 2. io.of(’/customers’))

the question is, can i create dynamic url for SocketIoConfig?
in my modules.ts im using this code
const config: SocketIoConfig = { url: ‘http://192.168.43.83:3001/’, options: {} };

i want to make it dynamic and can handle 2 different file in point 4

thanks …