WatsonTcp icon indicating copy to clipboard operation
WatsonTcp copied to clipboard

Handshake message on connect

Open Sardelka9515 opened this issue 3 years ago • 4 comments

It'll be nice to be able to send a handshake message on connect, allowing the server to reject connection or send a HandshakeSucess message back

Sardelka9515 avatar Oct 01 '22 15:10 Sardelka9515

Is the use case to be able to reject a connection server-side? The library provides such a capability. Please help me understand the goal. Cheers

jchristn avatar Oct 01 '22 16:10 jchristn

A handshake message on connect will provide ability of custom authentication #117, e.g. username/password validation. Also the server could use the handshake message to initialize a client.

Sardelka9515 avatar Oct 02 '22 01:10 Sardelka9515

Got it. Thanks for the context. I'd happily take a PR on this if you're up for it!

jchristn avatar Oct 02 '22 02:10 jchristn