summaryrefslogtreecommitdiff
path: root/tests/channel.ur
blob: 2ea89e8771b64af3b1c6439d0898592ea6a11448 (plain)
1
2
3
4
5
6
7
8
9
10
11
fun main () : transaction page =
    ch <- channel;
    let
        fun onload () =
            subscribe ch;
            send ch "Hello world!"
    in
        return <xml><body onload={onload ()}>

        </body></xml>
    end