Theldus / wsServer

wsServer - a tiny WebSocket server library written in C
https://theldus.github.io/wsServer
GNU General Public License v3.0
427 stars 86 forks source link

Enhancement: Arbitrarily close connection #13

Closed Theldus closed 3 years ago

Theldus commented 3 years ago

Description

This PR introduces support for arbitrarily closing the client connection via the function ws_close_client. Once is invoked, the server starts the closing handshake, and if there is no response from the client for TIMEOUT_MS ms, the connection is then closed immediately.

Fixes #12