mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
ui: Re-implement websockets with ports+JS
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
port module Ports exposing (onSessionChange, storeSession, windowTitle)
|
||||
port module Ports
|
||||
exposing
|
||||
( monitorCommand
|
||||
, monitorMessage
|
||||
, onSessionChange
|
||||
, storeSession
|
||||
, windowTitle
|
||||
)
|
||||
|
||||
import Data.Session exposing (Persistent)
|
||||
import Json.Encode exposing (Value)
|
||||
|
||||
|
||||
port monitorCommand : Bool -> Cmd msg
|
||||
|
||||
|
||||
port monitorMessage : (Value -> msg) -> Sub msg
|
||||
|
||||
|
||||
port onSessionChange : (Value -> msg) -> Sub msg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user