Skip to content

socket.io integration #45

@fponticelli

Description

@fponticelli

here is the proposed syntax:

var app = new abe.App();
app.socket.register(new SocketComm());


@:path("/chat")
class SocketComm implements ISocket {
  function connection() {
    socket.emit('a message', { that: 'only', '/chat': 'will get' });
    emit(('a message', { everyone: 'in' , '/chat': 'will get' });
  }

  @:on("my other event")
  function otherEvent(data : TypedData) {
    trace(data);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions