Frontend

final class Frontend[F[_]](incomingMessages: Stream[F, String])(implicit evidence$1: Effect[F], reporter: Reporter, ec: ExecutionContext)

Typed interface to client side

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def changePageUrl(pq: PathAndQuery): F[Unit]
def downloadFile(name: String, stream: Stream[F, Bytes], size: Option[Long], mimeType: String): F[Unit]
def evalJs(code: String): F[String]
def extractEventData(renderNum: Int): F[String]
def extractProperty(id: Id, name: String): F[String]
def focus(id: Id): F[Unit]
def listFiles(id: Id): F[List[(String, Long)]]
def listenEvent(name: String, preventDefault: Boolean): F[Unit]
def performDomChanges(f: ChangesPerformer => Unit): F[Unit]
def registerCustomCallback(name: String)(f: String => F[Unit]): F[Unit]
def reload(): F[Unit]
def reloadCss(): F[Unit]
def resetForm(id: Id): F[Unit]
def resolveFile(descriptor: String, file: Stream[F, Bytes]): F[Unit]
def resolveFileDownload(descriptor: String): F[Option[DownloadFileMeta[F]]]
def resolveFileNames(descriptor: String, handler: List[(String, Long)]): F[Unit]
def resolveFormData(descriptor: String, formData: Either[Throwable, FormData]): F[Unit]
def setProperty(id: Id, name: String, value: Any): F[Unit]
def setRenderNum(i: Int): F[Unit]
def uploadFile(id: Id, handler: FileHandler): F[Stream[F, Bytes]]
def uploadForm(id: Id): F[FormData]

Concrete fields

val browserHistoryMessages: Stream[F, PathAndQuery]
val outgoingMessages: Stream[F, String]