title: Using socket io instance out side the app.js
body: <p>I want to be able to import the socket instance without needing to re define it in my controller</p>
  <p>my structure gose like
  app =&gt; routs =&gt; controller</p>
  <pre><code>async getAllUserConnections (req,res){
          const uid = {
             id:  req.user.id
          }
          try {
              const data= await 
              db.userConnections.findAll({
                  where :{
                      resiver_user_id :uid.id
                  },
                   include: [{
                        model:db.user
                    }]
                  
              });
          io.of('/not').on(&quot;connection&quot;,function(){
              console.log(&quot;Connected&quot;);
  
          })
              if (data.length == 0) 
              return res.send('there is no Data to get');
              return res.send(data)
          }catch(error){
              return res.send(error)
          }
      } 
  }
  </code></pre>