Comments (4)
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.
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.
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.
No worries, it's still in the 0.x. I expected a few rough edges 😃
from soketi.
Related Issues (20)
- [REQUEST] Add Support for json export of metrics and usage HOT 1
- [BUG] I can't seem to install soketi in pnpm v8.12 and node v20 HOT 1
- Can't deploy it with ssl and nginx HOT 3
- soketi can not working in Docker ? HOT 5
- https://dash.soketi.app/register seems to be down HOT 7
- [REQUEST] Metrics direct logging? HOT 1
- Can't stablish ssl connection with soketi and laravel HOT 3
- Typo in docs HOT 2
- [BUG] Same port bug and or bug behind kubernetes LB? HOT 2
- [REQUEST] Statistic Collection for Dashboard project (link inside)
- soketi exec_curl error: "OpenSSL/1.1.1u: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure"
- [DOCUMENTATION] Docker tag 1-16-alpine does not work slash does not exist HOT 1
- [REQUEST] Heroku deployment example HOT 1
- the Soketi project is abandoned HOT 9
- [BUG] webhook Message event handler not implemented HOT 2
- configuration of ssl on server HOT 3
- How to install soketi in windows 11 HOT 9
- Sorry, you have been blocked HOT 1
- [BUG] dash.soketi.app is down (522) HOT 5
- Cannot read properties of undefined (reading 'includes') HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soketi.