How do send a TCP packet from Roblox?

How can I send a TCP packet from a script? I want to keep a connection alive and send packets to mantain a stable IRC chat in a script, of course filtered, I’ve tried a proxy but it only works with WSS, what do I do?

There is no way. All that is handled at a lower level of code.
All that you can do is send http requests using HttpService
https://developer.roblox.com/en-us/api-reference/class/HttpService
TCP is the way in which you send the data. With TCP you and the server confirm that you got the packet. The other way is UDP when you can think of it as sending your data and hoping it got there.

You can lean a little more about it here TCP vs UDP Comparison - YouTube

1 Like

You can’t directly. You’d probably need to host a http server yourself to translate HttpService requests from roblox into TCP. Something like this lib I found on google looks like it might help with the translating: https://github.com/hackeriet/irc-http, although I haven’t looked much at it.