Current collected state Current
Observed since 20 Oct, 21:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7f
7F protocol library for node.js
7F protocol library for Node.js
npm install 7f
lib7f = require "7f"
server = new lib7f.Server
server.on "client", (client) ->
client.on "message", (msg) ->
console.log msg
header = {nr: 1}
advancedHeader =
logicalNr: 1245
command: lib7f.constants.Command.TO
type: lib7f.constants.DataType.BYTEARRAY
count: 3
data = new Buffer 7
msg = new lib7f.Message header, advancedHeader, data
client.send msg
server.on "reconnect", (client) ->
console.log "client #{client.id} has reconnected"
server.connect -> # the server is ready
You can also specify the port, the server address to which the server should be bound to, the servers specification number and it's login function ID:
server = new lib7f.Server
host: "192.168.10.30"
port: 5010
specificationNr: 8
loginFunctionId: 5
lib7f = require "7f"
client = new lib7f.Client 7,
host: "192.168.0.100"
port: 5010
specificationNr: 3
loginFunctionId: 9
client.on "message", (msg) ->
console.log msg
header = {nr: 4}
advancedHeader =
logicalNr: 54
command: lib7f.constants.Command.FETCH
type: lib7f.constants.DataType.WORD
count: 9
data = new Buffer 33
msg = new lib7f.Message header, advancedHeader, data
client.send msg
client.on "error", (err) ->
console.log "something went wrong"
client.on "login", ->
console.log "client is now logged in"
client.on "connect", ->
console.log "client is connected"
client.login()
client.on "disconnect", ->
console.log "client is now disconnected"
client.connect()
GPLv3
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
bitsEnvironment{
"local_name": "bits",
"alias": false,
"peer_metadata": null
} | ~0.1.0 | runtime |
coffee-scriptEnvironment{
"local_name": "coffee-script",
"alias": false,
"peer_metadata": null
} | ~1.6.3 | development |
busterEnvironment{
"local_name": "buster",
"alias": false,
"peer_metadata": null
} | ~0.6.12 | development |
buster-coffeeEnvironment{
"local_name": "buster-coffee",
"alias": false,
"peer_metadata": null
} | ~0.1.4 | development |
sinonEnvironment{
"local_name": "sinon",
"alias": false,
"peer_metadata": null
} | ~1.7.3 | development |
Source distribution
{
"shasum": "af1a0ce3eee2900b69060162a00ad353306c22d0",
"tarball": "https://registry.npmjs.org/7f/-/7f-1.1.1.tgz",
"integrity": "sha512-I+eTyJMweBdkTLq4wbN/zG75aVyk9oWKrK5OF2ZHW4e7vq4IUTn7JmqWLoC8eeGeFICEbaCz71u7Gm/REsTkNQ==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQDSXasYX+3MN5HdaHkxBaTD6j6ihrc2W5CErwMH7njf2gIhAKMhp+VKYdSYveWEiHJDqSDv2FGyA31s5nnCEClh5i3p"
}
]
}Observed since 20 Oct, 21:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:346bdadefd46c8cc1700f72090bae74a14f398d4fa138b4e6a0824933d1ae6a5