MarsServer

Undocumented in source.

Constructors

this
this(immutable(MarsServerConfiguration) c)
Undocumented in source.

Members

Functions

broadcast
void broadcast(M message)
Undocumented in source. Be warned that the author may not have intended to support it.
createClientSideTablesFor
void createClientSideTablesFor(MarsClient* client)

Create the server side tables for the client, preparing the initial sync op. Callee: protoauth.

disposeClient
void disposeClient(MarsClient* client)
Undocumented in source.
engageClient
MarsClient* engageClient(string clientId)

Register the client between the connected clients

getClient
MarsClient* getClient(string clientId)
handleDatabase
void handleDatabase()

gestisci le cose se succedono a livello db, come push per i client mars

onMarsProtocolReady
void onMarsProtocolReady(MarsClient* client)

Called by 'protomars' module.

wipeClientSideTablesFor
void wipeClientSideTablesFor(MarsClient* client)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

ExposeSchema
MarsServerConfiguration ExposeSchema(immutable(Schema) schema)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

configuration
MarsServerConfiguration configuration;
Undocumented in source.
databaseHandler
Task databaseHandler;
Undocumented in source.
serverSideMethods
string delegate(MarsClient, string, Json) serverSideMethods;
Undocumented in source.
tables
BaseServerSideTable!(MarsClient*)[] tables;
Undocumented in source.

Meta