Skip to content
Snippets Groups Projects
Commit a47d2a29 authored by Clément Pit-Claudel's avatar Clément Pit-Claudel
Browse files

client: Improve documentation of ClientApp and ClientAppInstance

parent 01804b56
No related branches found
No related tags found
1 merge request!27Add an IncrementalUI mixin
......@@ -3,14 +3,12 @@ package client
import org.scalajs.dom
/** The ClientApp interface is used by clients to connect to a server. */
/** A factory for client-side app instances. */
trait ClientApp:
def appId: AppId
def uiId: UIId
def uiId: UIId
def init(instanceId: InstanceId, userId: UserId, endpoint: String, target: dom.Element): ClientAppInstance
/** The ClientAppInstance interface is used by the server to store the state of
* a client UI.
*/
/** An instance of a client-side application. */
trait ClientAppInstance:
def onMessage(msg: util.Try[ujson.Value]): Unit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment