- Dockerfile builds with --features websocket and sets VITE_TRANSPORT=websocket - Server default feature changed from socketio to websocket - Binary canvas transfer (1MB) instead of Socket.IO JSON (~3-4MB per connection) - Significantly reduces memory pressure under concurrent connections
27 lines
716 B
TOML
27 lines
716 B
TOML
[package]
|
|
name = "server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[features]
|
|
default = ["websocket"]
|
|
socketio = ["dep:socketio", "dep:socketioxide"]
|
|
websocket = ["dep:websocket"]
|
|
|
|
[dependencies]
|
|
application = { workspace = true }
|
|
canvas-file = { workspace = true }
|
|
config = { workspace = true }
|
|
config-env = { workspace = true }
|
|
axum = { workspace = true }
|
|
domain = { workspace = true }
|
|
http-axum = { workspace = true }
|
|
dotenv = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
socketio = { workspace = true, optional = true }
|
|
socketioxide = { workspace = true, optional = true }
|
|
websocket = { workspace = true, optional = true }
|