title: ypeError: Cannot read properties of undefined (reading 'of')
body: <p><em><strong>This is my Error</strong></em></p>
  <pre><code>fastify.io.of('/webusers').on('connect', (socket) =&gt; {
                 ^
  
  TypeError: Cannot read properties of undefined (reading 'of')
  </code></pre>
  <p><em><strong>this is what i have defined.</strong></em>
  <strong>If someone could help that would be great!</strong></p>
  <pre><code>const config = require('./config.json')
  
  const fastify = require('fastify')()
  const fastifySession = require('@fastify/session')
  const fastifyCookie = require('@fastify/cookie')
  const helmet = require('fastify-helmet')
  const mariadb = require('mariadb')
  const axios = require('axios')
  const querystring = require('querystring')
  
  const pool = mariadb.createPool({ host: config.database.host, user: config.database.user, password: config.database.password, database: config.database.db, connectionLimit: 10 })
  </code></pre>