connections

WebJar for connections

Лицензия

Лицензия

BSD 2-Clause
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

connections
Последняя версия

Последняя версия

1.4.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

connections
WebJar for connections
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/maxogden/connections

Скачать connections

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/connections/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>connections</artifactId>
    <version>1.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/connections/
implementation 'org.webjars.npm:connections:1.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/connections/
implementation ("org.webjars.npm:connections:1.4.2")
'org.webjars.npm:connections:jar:1.4.2'
<dependency org="org.webjars.npm" name="connections" rev="1.4.2">
  <artifact name="connections" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='connections', version='1.4.2')
)
libraryDependencies += "org.webjars.npm" % "connections" % "1.4.2"
[org.webjars.npm/connections "1.4.2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

connections

Keeps track of connections to an http or tcp server (or any other server object with the same api) and provides a way to close connections

By default, require('http').createServer provides no mechanism for tracking client connections and/or closing client connections

NPM

usage

var connections = require('connections')(serverInstance)

You can also pass an array of server instances

connections has .sockets and .destroy

connections.on('idle', function() {})

called whenever all active connections have closed

connections.on('close', function(socket) {})

called whenever a socket closes

connections.on('connection', function (socket) {})

forwarded event from the server or servers

connections.sockets

an array of open sockets (http clients)

connections.destroy()

destroys/closes all active connections (calls .destroy() on each socket)

connections.add(socket)

manually add a socket to the connection list

Версии библиотеки

Версия
1.4.2