AiPBX
Product Features Integrations
Install Mobile
Resources Docs FAQ & Tech Why PHP? Videos
Try Contact Sponsor on GitHub UpCloud ($250 Free Credit) YouTube GitHub

Go WebSocket Chat Daemon (aipbx-chat) & Built-in LDAP Directory

Why real-time messaging runs in Go goroutines instead of PHP: 1,000+ WebSockets on 4 GB RAM, 256-member groups, v_chat_users DB view isolation, fail-closed file access, and built-in LDAP phonebook for desk phones.

Home / FAQ & Tech / Go WebSocket Chat Daemon (aipbx-chat) & Built-in LDAP Directory
PRODUCTION · MESSAGING

Low-Memory Concurrency & Strict Data Isolation

Pinning persistent WebSocket connections to Apache/PHP workers quickly exhausts RAM. Our standalone Go binary on 127.0.0.1:8086 (proxied at /chat/ws) uses only kilobytes per goroutine to power 1-on-1 & 256-member group rooms, typing/read receipts, push notifications, and fail-closed attachment ACLs (CH-G5) — reading only the 10-column v_chat_users view instead of sys_users.

Built-in LDAP Phonebook (:389 / :636)

When enabled, the same Go daemon exposes the company phonebook over LDAP / LDAPS (:389 / :636) so desk phones search contacts directly without maintaining an external OpenLDAP server.

On a 4 vCPU / 4 GB RAM host, aipbx-chat handles 1,000+ concurrent WebSockets cleanly and shares the host without touching Asterisk media threads.
Phonebook & LDAP Docs Why PHP? (Architecture) All Technologies