SquidDev-CC / CCTweaks

Random additions to ComputerCraft (somewhat deprecated, use CC-Tweaked if you're on Minecraft 1.12).
MIT License
12 stars 2 forks source link

Support for WebSockets #107

Closed sjennison closed 8 years ago

sjennison commented 8 years ago

It may be outside the scope of this mod, but adding HTTP API support for WebSockets would be really awesome.

SquidDev commented 8 years ago

CCTweaks currently provided a TCP socket system (modelled off OpenComputer's version). I've had a look at the WebSocket spec and it doesn't look too hard to implement - it is built on top of TCP. I might have a go myself.

My general approach is to not add a feature unless it is impossible or very impractical to implement Lua. WebSockets fall into this category.

SquidDev commented 8 years ago

That being said, using TLS/SSL would be hard so I might end up adding a TLS socket.

sjennison commented 8 years ago

Ah, I wasn't aware you added TCP sockets - I'm kinda new to CCTweaks. That's good to know and should indeed help a lot.

Thanks for taking a look :)

SquidDev commented 8 years ago

Yeah, CCTweaks is rather sparsely documented which is a problem I've been avoiding for a while.

If you have any other suggestions or bug reports please report them.