Skip to content

Write the shims.server #14

Description

@aurium

That must to work sooner as possible!

Activity

  1. ooflorent commented on Aug 13, 2014

    @ooflorent
    Contributor

    I think we have a problem here.

    All games should be able to run without the sandbox... The current design makes things really complicated. Last year, every server-side game had to serve its files using http and fs.

    Here is a snippet from last year winning entry:

    var fs = require('fs');
    var app = require('http').createServer(handler),
        io = require('socket.io').listen(app);
    
    function handler(req, res) {
      fs.readFile(/* ... */);
      /* ... */
    }

    So, should we serve game files or let games do it?
    If we serve the files then the game will not be runnable in standalone...

  2. aurium commented on Aug 13, 2014

    @aurium
    OwnerAuthor

    Well, we can consider this year the environment is not node itself, but this sandbox.

    I believe the sandbox-io may be called by require('socket.io') inside the sandbox, also the same to the http and any shimed module... but that was not planned before. :-/

    Can you implement it too on the sandboxer? So the sandbox and real node will not be so different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions