No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. sarpedon
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    sarpedon

    @sarpedon

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sarpedon Follow

    Latest posts made by sarpedon

    • ssr with socket io

      Hi there! i am using SSR mode, and i was wondering how to initialize web socket server on my server. i have modified extension.js as below:

      module.exports.extendApp = function ({app, ssr}) {
          const server = http.createServer(app)
          const io = socketIO(server)
      
      
          io.on('connection', (socket) => {
           //... 
          }
      }
      

      which does not work, it only works if i add this line to extension.js:

      server.listen(3000)
      

      but this is a bad idea, because anytime i made changes to this file, my dev server crashes and it is normal behaviour.

      what do you guys suggest?
      thanks!

      posted in Framework
      S
      sarpedon