Blockland Forums > General Discussion

HamHost Dedicated Blockland servers | New poll: More free-user features?

Pages: << < (117/216) > >>

Lugnut:


--- Quote from: hammereditor² on September 14, 2013, 04:06:24 PM ---Using web sockets with JavaScript is very difficult. I have tried for 3 hours, and I haven't set up a WebSocket server yet. I tired Socket.IO, but it seems very hard to configure. I tried a Java implementation of Socket.IO, but the source code requires hundreds of dependencies which would take weeks to find.
I have attempted jWebSocket, but when I run the standard server, it shuts down and shows no reason or error in the command prompt window. I can run the local version of jWebSocket, but that's pointless since users outside the local network need to access it.
I have looked at node.js, but it seems like a pain to configure and set up.
I think it'll take longer to set up the web socket server than to actually write the code.
So does anybody have any ideas?

--- End quote ---

--- Code: ---<script src="/socket.io/socket.io.js"></script>
<script>
  var socket = io.connect('http://localhost');
  socket.on('news', function (data) {
    console.log(data);
    socket.emit('my other event', { my: 'data' });
  });
</script>
--- End code ---

done
from the main site ffs

hammereditor²:

Actually, I've managed to get jWebSocket server running. I'll try creating a basic echo server with that tomorrow.

hammereditor²:

Here's the status on the web control panel:
I am having difficulties running the Java application server. Whenever the jWebSocket engine starts, it can't find the package "org.jWebSocket. tcp.TCPEngine". Fortunately, I found the source code on code.Google.com and I will try to manually compile the "tcp" package into a .jar, and use it.
After that, everything will be easy. Even the client-sided web page.

Unfortunately, HamHost will only have PayPal once the Web HHCP is complete.

Blake1:

To be honest, this looks really nice.

May get a premium account or close my CBMHost account.

hammereditor²:


--- Quote from: Blake1 on September 16, 2013, 03:20:07 PM ---To be honest, this looks really nice.

May get a premium account or close my CBMHost account.

--- End quote ---
Yeah, I think it's a good idea to close your CBM account so that people who want CBMhost can have it.
Remember that once the web panel is created, only premium users can use it.

Pages: << < (117/216) > >>

Go to full version