Posts

Showing posts from April 5, 2019

Namespace does not work for socket.io-client in node.js app

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 Namespace on web page client works fine for me: // Browser side JS: processed by browserify var io = require('socket.io-client')('/namespace'); io.emit("message", data); Server receives connect and the message without any problem. However if I try to make client app with node.js name space does not work. Code is following: test.js var io = require('socket.io-client'); var socket = io.connect('http://localhost:3000', { reconnect: true, path: '/namespace' }); // Add a connect listener socket.on('connect', function(socket) { console.log('Test

Access to the IDs of a list in Shiny

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I have to create a variable number of checkboxInput with a related numeric input for each one. I have found on this page an interesting way to display it on the UI easily through a list, but I am not managing to use their ID together as an input parameter on other server functions. I've tried: input[[paste0("x",1:length(Animals)]] But I need an alternative way to use as input all the ID's. The code is the following one: runApp(list( ui = fluidPage( fluidRow( column(3, uiOutput("RenderSliders") ) ) ), server = function(input, output) { out