Jump to content




Websockets!


  • You cannot reply to this topic
25 replies to this topic

#21 The Logo Maker

  • Members
  • 83 posts
  • Locationyes

Posted 20 July 2016 - 03:44 PM

View Postmartmists, on 20 July 2016 - 07:59 AM, said:

I think I'm just gonna take ccSockets and update it to a newer version of CC

you amazing.

#22 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 20 July 2016 - 09:37 PM

View Postmartmists, on 20 July 2016 - 07:59 AM, said:

I think I'm just gonna take ccSockets and update it to a newer version of CC

You might also want to look at CCTweaks (http://www.computerc...0189-cc-tweaks/) which provides a socket API.

#23 Cloud Ninja

  • Members
  • 361 posts

Posted 20 July 2016 - 10:50 PM

View PostSquidDev, on 20 July 2016 - 09:37 PM, said:

View Postmartmists, on 20 July 2016 - 07:59 AM, said:

I think I'm just gonna take ccSockets and update it to a newer version of CC

You might also want to look at CCTweaks (http://www.computerc...0189-cc-tweaks/) which provides a socket API.
This is an option, or if you dont want to use another mod, you could take a look at HTTP to Socket, an API me and my friend developed. It allows both TCP and UDP socketting without the need for another mod. Although, it does require a webserver running it, but that could be done on your own computer, a raspberry pi, realistically anything that can run a webserver with a jsp applet container

#24 Midnightas

  • Members
  • 44 posts

Posted 15 August 2016 - 09:52 PM

I'd use the HTTP api for using my APIs on websites rather than sockets.

Edited by Midnightas, 15 August 2016 - 09:53 PM.


#25 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 11 September 2016 - 06:39 AM

I found out how websockets are different from normal sockets, by the way - they're designed for use by untrusted client code.

With raw sockets you could, say, connect to and SMTP server and send spam emails. With websockets, the server gets told that "this is a connection from ComputerCraft computer #13552", and it should reject the connection unless it's specifically intended to deal with requests from ComputerCraft computers.

#26 masterex1000

  • Members
  • 10 posts

Posted 11 September 2016 - 08:07 PM

i would love this. think of using socket.io !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users