Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for dartlang.org
« Groups Home
Is it possible to use a JS based API like the Google Hangouts API with Dart?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brendon Duncan  
View profile  
 More options Feb 29 2012, 6:52 pm
From: Brendon Duncan <brendon_dun...@hotmail.co.nz>
Date: Wed, 29 Feb 2012 15:52:11 -0800 (PST)
Local: Wed, Feb 29 2012 6:52 pm
Subject: Is it possible to use a JS based API like the Google Hangouts API with Dart?
I'm writing a web app in Dart, I'd like to be able to use it inside a
Google+ Hangout too. It seems that the Hangouts API is specified with
a Javascript interface, with no RESTFUL web API available.  Here's the
link:

https://developers.google.com/+/hangouts/reference

Is it possible to do this at all with Dart?  Reverse engineering the
interface from the js file would probably take too long for it to be
feasible, especially with a moving target. If I really wanted to be
able to use it as a Google+ Hangouts app, then I would have to go back
to js which is something that I really don't want to do.

What other options are there?
Brendon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Nystrom  
View profile  
 More options Feb 29 2012, 7:21 pm
From: Bob Nystrom <rnyst...@google.com>
Date: Wed, 29 Feb 2012 16:21:12 -0800
Local: Wed, Feb 29 2012 7:21 pm
Subject: Re: [misc] Is it possible to use a JS based API like the Google Hangouts API with Dart?

Our JS interop story is still in flux so there aren't any easy answers
here. I think what you could do is write most of your app in Dart. Then
write a (hopefully small) shim layer in JS that talks to the Hangouts API
and routes it through postMessage(). You can then pick that up in Dart and
take it from there.

At least I *think* that's the way you can do it. This isn't my area of
expertise.

- bob

On Wed, Feb 29, 2012 at 3:52 PM, Brendon Duncan <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seth Ladd  
View profile  
 More options Feb 29 2012, 7:45 pm
From: Seth Ladd <sethl...@google.com>
Date: Wed, 29 Feb 2012 16:45:34 -0800
Local: Wed, Feb 29 2012 7:45 pm
Subject: Re: [misc] Is it possible to use a JS based API like the Google Hangouts API with Dart?

I've done exactly this when I needed to run some JavaScript code from
within Dart. I used postMessage() between Dart and the host page, capturing
it in JavaScript. I used this more for course grained signaling, I didn't
try to do anything real-time.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Brandt  
View profile  
 More options Feb 29 2012, 8:02 pm
From: Eli Brandt <e...@google.com>
Date: Wed, 29 Feb 2012 17:02:47 -0800
Local: Wed, Feb 29 2012 8:02 pm
Subject: Re: [misc] Is it possible to use a JS based API like the Google Hangouts API with Dart?

Yep, as far as I know this is the state of the art.

I forget who had the idea, but we've had discussion about writing an
"all-purpose" shim in JS.  Handwaving, it would live on the JS side,
receive structured strings, and execute the fn calls they specify.
 Nobody's got concrete plans to write this that I've heard of.

This would not be blindingly fast, but we aren't recommending tight
fine-grained intercalling between Dart and JS.

Eli


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »