@Fez-Vrasta You have to include it. e.g. var SocketIO = require('./socket.io');
I'm not sure if there is an option for per widget client js. I put it in my main client.js in my plugin.json.
Is there any best practice in bootstrapping Widget with data?
Pre-rendered widget via backend isn't enough for me.
What are you trying to do?
@baris Widget where rendering done on client-side, and widget changes in real-time.
For initial rendering I would like to have some data, to bootstrap widget.
This pre-renders the list of active users from server data. And then has some inline JS with socket call to update the list as new users become active