Sha256: 847634b45ba3eaf2cdba88d9a5b930b18198373a6d4be7d317e3389ce975a067

Contents?: true

Size: 971 Bytes

Versions: 33

Compression:

Stored size: 971 Bytes

Contents

#Socket.io (sockio.js)

##Driver Functions
`if_sockio_init(url, sp)` - Initialize a socketio socket with the given `url` and refer to it with `sp`. Any messages received relating to this
socket, like `if_sockio_fwd` or `if_sockio_send` should be queued if the socket is not instantly created and dispatched when the socket is created.

`if_sockio_fwd(sp, event_name, ep)` - A request to forward messages from a socket.io socket that represents `id` to the `ep` address as an `if_event` where the event
name is the same as the `socket.io` `event_name` and the information is passed as the `event` field for the `if_event`. Only forward messages matching
`event_name`.

`if_sockio_send(sp, event_name, info)` - Send a socket.io message with the given message `event_name` and `info` to the socket named `id`.

##Additional info
This is functionally different than a debug server that uses the `socket_io` scheme. The debug server is required to handle socket_io by itself.

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
flok-0.0.105 docs/mod/sockio.md
flok-0.0.103 docs/mod/sockio.md
flok-0.0.102 docs/mod/sockio.md
flok-0.0.101 docs/mod/sockio.md
flok-0.0.100 docs/mod/sockio.md
flok-0.0.99 docs/mod/sockio.md
flok-0.0.98 docs/mod/sockio.md
flok-0.0.97 docs/mod/sockio.md
flok-0.0.96 docs/mod/sockio.md
flok-0.0.95 docs/mod/sockio.md
flok-0.0.94 docs/mod/sockio.md
flok-0.0.93 docs/mod/sockio.md
flok-0.0.92 docs/mod/sockio.md
flok-0.0.91 docs/mod/sockio.md
flok-0.0.90 docs/mod/sockio.md
flok-0.0.89 docs/mod/sockio.md
flok-0.0.88 docs/mod/sockio.md
flok-0.0.87 docs/mod/sockio.md
flok-0.0.86 docs/mod/sockio.md
flok-0.0.85 docs/mod/sockio.md