socket.io binding for jsx