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

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: 6.3**

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

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



See [CHANGES](CHANGES.md) for the summary of changes between releases. If the major version of a subsequent release remains unchanged, it is supposed to be backwards compatible in terms of API and behaviour with previous ones with the same major version (meaning that it should be safe to just blindly update in dependent projects and things should not break under normal circumstances).

## 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.