Skip to content

Framework

Matthew Ratzke edited this page Apr 18, 2017 · 1 revision

The [meta] framework provides a system for building applications which span across multiple different scenarios.

Mode Runtime Description
Client Browser (JavaScript) Served by server or agent.
Server Node.js Serves client and handles api requests.
Agent Electron (via Node.js) Connects to server and optionally serves client.
Worker Node.js Connects to server and handles long running tasks.

Client

Client mode is the most basic and is used for Single Page Apps (SPA's). It provides a basic connection to the server via socket.io which allows event based communication.

Server

Server mode is designed to serve the client (in browser) and handle API requests. It is recommended to use workers for long running tasks.

Agent

Agent mode combines both client, server and worker modes.

Worker

Worker mode is designed for long running tasks, and does not serve any client.

Clone this wiki locally