Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morgwai/servlet-utils

Automatic ping-pong for websocket connections
https://github.com/morgwai/servlet-utils

java java-websocket java-websocket-ping java-websocket-ping-pong java-websocket-round-trip-time java-websocket-rtt java-websocket-rtt-discovery websocket websocket-ping-pong websocket-round-trip-time websocket-rtt websocket-rtt-discovery

Last synced: about 1 month ago
JSON representation

Automatic ping-pong for websocket connections

Awesome Lists containing this project

README

        

# Servlet utils

Some helpful classes when developing `Servlet`s and websocket `Endpoint`s.

Copyright 2021 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0.



**latest release: 5.1**

[javax flavor](https://search.maven.org/artifact/pl.morgwai.base/servlet-utils/5.1-javax/jar)
([javadoc](https://javadoc.io/doc/pl.morgwai.base/servlet-utils/5.1-javax)) - supports Websocket `1.1` API

[jakarta flavor](https://search.maven.org/artifact/pl.morgwai.base/servlet-utils/5.1-jakarta/jar)
([javadoc](https://javadoc.io/doc/pl.morgwai.base/servlet-utils/5.1-jakarta)) - supports Websocket `2.0.0` to at least `2.1.1` APIs

## MAIN USER CLASSES

For now just 1 class:
### [WebsocketPingerService](https://javadoc.io/doc/pl.morgwai.base/servlet-utils/latest/pl/morgwai/base/servlet/utils/WebsocketPingerService.html)
Simple utility service that automatically pings and handles pongs from websocket connections. May be used both on a server and a client side. Supports round-trip time discovery.