server
- Description:
Server-side part of the soundworks framework.
import '@soundworks/helpers/polyfills.js'; import { Server } from '@soundworks/core/server.js'; import { loadConfig } from '../utils/load-config.js'; // - General documentation: https://soundworks.dev/ // - API documentation: https://soundworks.dev/api // - Issue Tracker: https://github.com/collective-soundworks/soundworks/issues // - Wizard & Tools: `npx soundworks` const config = loadConfig(process.env.ENV, import.meta.url); const server = new Server(config); server.setDefaultTemplateConfig(); await server.start();
- Source:
Classes
- Client
- Context
- ContextManager
- Plugin
- PluginManager
- Server
- SharedState
- SharedStateCollection
- Socket
- Sockets
- StateManager
Type Definitions
ServerConfig
- Description:
Configuration object for the server.
- Source:
Properties:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app |
object |
<optional> |
Application configration object. Properties
|
|||||||||||||||||||||||||||||||||||
env |
object |
<optional> |
Environment configration object. Properties
|
Configuration object for the server.
Type:
- object