m0gg / dart-rails

Handle dart scripts for rails so they get compiled to js for browsers without dart support.
MIT License
21 stars 2 forks source link

handling of dart server applications #4

Closed m0gg closed 8 years ago

m0gg commented 10 years ago

Handle Dart server applications

Any ideas appreciated!

m0gg commented 10 years ago

How about a dart/ruby interop channel?

[Client] <-- websocket --> [dart_server(websocket)] <-- C --> [rails_server]

Example:

  1. Client sends new record via websocket
  2. dart_server pushs data to rails ActionController (not via http if possible)

edit: maybe ActionController is the wrong point for a hook, but it would make the implementation simple and beautiful

there won't be any request headers and so on...