Is there any plan to allow dart programs to use sockets in chrome, like chrome packaged apps are allowed to use the chrome.socket api set?
There is a package which implements the chrome* APIs in Dart at http://pub.dartlang.org/packages/chrome.
Sockets are supported by latest releases of Dart: see Socket class in dart:io library.
They can only be used in command line applications (e.g. on server-side). Sockets are currently not supported by Web browsers (you must use WebSockets which are not the same).
Related
I need to connect the smartfoxserver by .dart package.
Do we have library to connect the smartfoxserver, which should support IOS, Android, Windows and web.
But we have some packages for socket.io but not available for smartfoxserver.
Can you provide me the suggestion.
I am looking for the latest technology in Google Chrome to read a TCP socket on the users computer and capture the data (which I will then manipulate and populate a field on the web page.) I have read about NPAPI, chrome apps and chrome extensions but each is either about to be deprecated or doesn't support TCP sockets. What method is available that will be supported for more than the next year?
I have already developed a similar addon for Internet Explorer in ActiveX that is called in javascript and works well.
I'm confused by the GAE documentations. It says App Engine supports sockets without requiring you to import any special App Engine libraries or add any special App Engine code. but it seems misleading as just above it says App Engine supports outbound sockets through the appengine/socket package.
I would like to connect to an IMAP server using the standard net package. Is that possible or I'm stuck with the GAE sockets API?
https://cloud.google.com/appengine/docs/go/sockets/
It is not possible to open an outbound socket without going through the appengine/socket api. This is because it works through RPC and an appengine.Context is needed to do that. You can still use the IMAP library you linked, though, as it provides a function to create a client with a given net.Conn. You can get a net.Conn from appengine/socket and pass it to NewClient to do your business. The reason it works on python and java is because they both use thread local memory to manage request state implicitly, whereas the go runtime does not.
Nothing stops you from connecting to an Imap server, since you will initiate an outbound connection. For java, the standard java mail packages work out of the box.
Only for paid apps though, i.e. you need to have billing enabled.
I have some c libraries for image processing and optimizing.
Should I port my c libs to native client for publishing as chrome app?
Is there any other way to use the c libs?
Native Client (NaCl), or Portable Native Client (PNaCl) are great options, this guide can help you choose between NaCl and PNaCl. They will offer the best performance. Should you want to deploy to other browsers that don't support NaCl, you can investigate pepper.js, and do your port with those additional constraints. That will enable you to use either [P]NaCl or Emscripten.
Are there any websocket plugins for nodejs; I would like to develop some application that uses websockets.
Checkout Socket.IO - it's a widely used and powerful Node module for socket connections.
WebSocket-Node is a pure WebSocket implementation in node.js that supports the latest version of the WebSocket spec (version 8), and is still being actively maintained.
Otherwise Socket.io has broader browser support because it can fall back to things such as Flash Sockets, long lived iframes etc.
Like cmpolis mentioned, Socket.IO is excellent. Just upgraded to 0.8 too.
nowjs also provides a higher-level api if you like more abstraction.
Similar to nowjs, dnode allows you to call remote functions between the client and server and vice versa.
Here is a great SO answer delineating the differences between them.