fszmq


Pub-Sub Message Evelopes

Publisher sends multi-part messages where the first frame is the subscription topic

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
#r "fszmq.dll"
open fszmq
open fszmq.Socket
open System.Threading

let main () =
  // prepare our context and publisher
  use context   = new Context ()
  use publisher = Context.pub context
  Socket.bind publisher "tcp://*:5563"

  while true do
    // write tow messages, each with an envelope and content
    publisher <~| "A"B
              <<| "We don't want to see this."B
    publisher <~| "B"B
              <<| "We would like to see this."B
    Thread.Sleep 1

  0 // return code
module docs
module PATH

from docs
val hijack : unit -> unit

Full name: docs.PATH.hijack
namespace fszmq
Multiple items
module Socket

from fszmq

--------------------
namespace System
namespace System.Threading
val main : unit -> int

Full name: Psenvpub.main
val context : 'a
val publisher : fszmq.Socket
val bind : socket:fszmq.Socket -> address:string -> unit

Full name: fszmq.Socket.bind
Multiple items
type Thread =
  inherit CriticalFinalizerObject
  new : start:ThreadStart -> Thread + 3 overloads
  member Abort : unit -> unit + 1 overload
  member ApartmentState : ApartmentState with get, set
  member CurrentCulture : CultureInfo with get, set
  member CurrentUICulture : CultureInfo with get, set
  member DisableComObjectEagerCleanup : unit -> unit
  member ExecutionContext : ExecutionContext
  member GetApartmentState : unit -> ApartmentState
  member GetCompressedStack : unit -> CompressedStack
  member GetHashCode : unit -> int
  ...

Full name: System.Threading.Thread

--------------------
Thread(start: ThreadStart) : unit
Thread(start: ParameterizedThreadStart) : unit
Thread(start: ThreadStart, maxStackSize: int) : unit
Thread(start: ParameterizedThreadStart, maxStackSize: int) : unit
Thread.Sleep(timeout: System.TimeSpan) : unit
Thread.Sleep(millisecondsTimeout: int) : unit
val release : unit -> unit

Full name: docs.PATH.release
Fork me on GitHub