{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package server\n\nPackage server serves Pencode workspaces over a binary byte stream. It has no dependency on the engine's rendering, input, ECS or window packages.\n\n## Functions\n\n```go\nfunc Serve(parent context.Context, conn io.ReadWriteCloser, options Options) error\n```\nServe preserves wire order for document mutations. Long operations run in a bounded service pool; cancellation and ordinary file edits keep flowing.\n\n```go\nfunc ServeWebSocket(parent context.Context, listener net.Listener, token string, options Options) error\n```\nServeWebSocket owns listener and serves independent authenticated sessions at /ws. Cancellation closes hijacked connections and waits for their services.\n\n## Types\n\n```go\ntype Options struct {\n\t// Empty selects ~/.pencode/extensions on the server host.\n\tExtensionDirectory string\n\t// Empty selects the server user's system config directory/pencode/resources.\n\tConfigurationDirectory string\n}\n```\n\n","path":"github.com/pencode-labs/pencode/server","name":"server","synopsis":"Package server serves Pencode workspaces over a binary byte stream.","isRedistributable":true}
