Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webapp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CS-214
ul2024
webapp-lib
Commits
a47d2a29
Commit
a47d2a29
authored
6 months ago
by
Clément Pit-Claudel
Browse files
Options
Downloads
Patches
Plain Diff
client: Improve documentation of ClientApp and ClientAppInstance
parent
01804b56
No related branches found
No related tags found
1 merge request
!27
Add an IncrementalUI mixin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/main/scala/cs214/webapp/client/ClientApp.scala
+3
-5
3 additions, 5 deletions
js/src/main/scala/cs214/webapp/client/ClientApp.scala
with
3 additions
and
5 deletions
js/src/main/scala/cs214/webapp/client/ClientApp.scala
+
3
−
5
View file @
a47d2a29
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment