Giter VIP home page Giter VIP logo

Comments (4)

rennokki avatar rennokki commented on May 14, 2024

Usually, the DEBUG=1 would output something like below. Is the appManager.driver set to mysql and the MySQL database credentials configured?

{
  adapter: { driver: 'local', redis: { prefix: '' } },
  appManager: {
    driver: 'array',
    array: {
      apps: [
        {
          id: 'app-id',
          key: 'app-key',
          secret: 'app-secret',
          maxConnections: -1,
          enableClientMessages: false,
          enabled: true,
          maxBackendEventsPerSecond: -1,
          maxClientEventsPerSecond: -1,
          maxReadRequestsPerSecond: -1,
          webhooks: []
        }
      ]
    },
    dynamodb: { table: 'apps', region: 'us-east-1', endpoint: '' },
    mysql: { table: 'apps', version: '8.0' },
    postgres: { table: 'apps', version: '13.3' }
  },
  channelLimits: { maxNameLength: 200 },
  cors: {
    credentials: true,
    origin: [ '*' ],
    methods: [ 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS' ],
    allowedHeaders: [
      'Origin',
      'Content-Type',
      'X-Auth-Token',
      'X-Requested-With',
      'Accept',
      'Authorization',
      'X-CSRF-TOKEN',
      'XSRF-TOKEN',
      'X-Socket-Id'
    ]
  },
  database: {
    mysql: {
      host: '127.0.0.1',
      port: 3306,
      user: 'root',
      password: 'password',
      database: 'main'
    },
    postgres: {
      host: '127.0.0.1',
      port: 5432,
      user: 'postgres',
      password: 'password',
      database: 'main'
    },
    redis: {
      host: '127.0.0.1',
      port: 6379,
      db: 0,
      username: null,
      password: null,
      keyPrefix: '',
      sentinels: null,
      sentinelPassword: null,
      name: 'mymaster'
    }
  },
  databasePooling: { enabled: false, min: 0, max: 7 },
  debug: 1,
  eventLimits: { maxChannelsAtOnce: 100, maxNameLength: 200, maxPayloadInKb: 100 },
  httpApi: { requestLimitInMb: 100 },
  instance: { process_id: 37716 },
  metrics: {
    enabled: false,
    driver: 'prometheus',
    prometheus: { prefix: 'pws_' }
  },
  port: 6001,
  pathPrefix: '',
  presence: { maxMembersPerChannel: 100, maxMemberSizeInKb: 2 },
  queue: { driver: 'sync', redis: { concurrency: 1 } },
  rateLimiter: { driver: 'local' },
  ssl: { certPath: '', keyPath: '', passphrase: '' }
}

from soketi.

stayallive avatar stayallive commented on May 14, 2024

Looks like it!

{
  adapter: { driver: 'local', redis: { prefix: '' } },
  appManager: {
    driver: 'mysql',
    array: {
      apps: [
        {
          id: 'app-id',
          key: 'app-key',
          secret: 'app-secret',
          maxConnections: -1,
          enableClientMessages: false,
          enabled: true,
          maxBackendEventsPerSecond: -1,
          maxClientEventsPerSecond: -1,
          maxReadRequestsPerSecond: -1,
          webhooks: []
        }
      ]
    },
    dynamodb: { table: 'apps', region: 'us-east-1', endpoint: '' },
    mysql: { table: 'apps', version: '8.0' },
    postgres: { table: 'apps', version: '13.3' }
  },
  channelLimits: { maxNameLength: 200 },
  cors: {
    credentials: true,
    origin: [ '*' ],
    methods: [ 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS' ],
    allowedHeaders: [
      'Origin',
      'Content-Type',
      'X-Auth-Token',
      'X-Requested-With',
      'Accept',
      'Authorization',
      'X-CSRF-TOKEN',
      'XSRF-TOKEN',
      'X-Socket-Id'
    ]
  },
  database: {
    mysql: {
      host: '127.0.0.1',
      port: 3306,
      user: '[redacted]',
      password: '[redacted]',
      database: '[redacted]'
    },
    postgres: {
      host: '127.0.0.1',
      port: 5432,
      user: 'postgres',
      password: 'password',
      database: 'main'
    },
    redis: {
      host: '127.0.0.1',
      port: 6379,
      db: 0,
      username: null,
      password: null,
      keyPrefix: '',
      sentinels: null,
      sentinelPassword: null,
      name: 'mymaster'
    }
  },
  databasePooling: { enabled: false, min: 0, max: 7 },
  debug: 1,
  eventLimits: { maxChannelsAtOnce: 100, maxNameLength: 200, maxPayloadInKb: 100 },
  httpApi: { requestLimitInMb: 100 },
  instance: { process_id: 86657 },
  metrics: {
    enabled: false,
    driver: 'prometheus',
    prometheus: { prefix: 'pws_' }
  },
  port: 6001,
  pathPrefix: '',
  presence: { maxMembersPerChannel: 100, maxMemberSizeInKb: 2 },
  queue: { driver: 'redis', redis: { concurrency: 1 } },
  rateLimiter: { driver: 'local' },
  ssl: { certPath: '', keyPath: '', passphrase: '' }
}

All other features do work just fine, I have multiple apps that all connect. It's just the webhooks not working.

from soketi.

rennokki avatar rennokki commented on May 14, 2024

Fixed the bug, thanks for testing it out. 👍 Since there are a lot of matrix configurations to test (and this leads to exponential-ish growth of tests for each commit), I try to avoid testing every little combination. Perhaps in the near future, I'll find a better way to automatically test every little error like this one.

from soketi.

stayallive avatar stayallive commented on May 14, 2024

No worries, it's still in the 0.x. I expected a few rough edges 😃

from soketi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.