I'm trying to build a very simple websocket client in lua, and I have found a number of libraries, but I have also found a lot of problems with each library.
The biggest problem is that lua 5.3 is the current version, but no libraries seem to work with it.
lua-websockets : will not work on lua 5.3 because of the luabitop dependency
http.websocket : gives me connection resets whenever I try to receive messages, and the documentation is sparse when it comes to building an asynchronous websocket client.
turbolua : looks great but the last update was almost a year ago, it will not build on my Mac and the website (www.turbolua.org) appears to have been hacked.
Am I missing something here?
The library found on github.com/arcapos/luawebsocket works with Lua 5.3.
Related
Is there a way to sign a JSON UTF8String with JOSE.JWS before sending via https to a (government) server using Lazarus / FPC ?
The specification is heavy and writing everything from scratch seems to be an impossible big job before (government's) deadline.
(Although I've found a Delphi XE7+ code here... , sadly it is using outdated Indy components, so would be hard to rewrite to FPC + Synapse)
So the best would be to do that with latest (trunc) Ararat Synapse component, because it can handle OpenSSL3+ too.
(And the REST communication is working with that already.)
OR
Maybe possible to use a freely available, compiled binary (Win7 compatible 32-bit .DLL file) from somewhere and write a wrapper around it?
We want to transfer data from a client to a server in realtime, so we have decided to go with WebSockets.
Using Xamarin.Forms it was surprisingly difficult to find a suitable WebSocket library.
The best match was "WebSocket4Net" because it is directly suggested on Xamarin's Homepage. However I was not able to install this library, because it only supports versions of .NET up to v4.0. (We are using v4.5)
Whenever I try to change the target framework of my PCLs from v4.5 to v4.0 I get loads of weird errors stating "Windows.Input library could not be found", "ObservableCollection could not be found" etc.
So we are currently using the library "WebSocket.Portable.Core", which although lacking some functionality worked out. However for some reason we can only receive one message. The event "MessageReceived" always is just called once.
Has anyone heard about such a problem with WebSockets? Maybe it is just time to use another library, but I just can't find one?
I also can't find any solution how to implement WebSockets natively for each platform.
WebSockets.PCL has a native implementation for each platform and it's well documented
https://github.com/NVentimiglia/WebSockets.Pcl
I'm wondering if anyone has any information or speculation as to when or if there will be a native windows version/port of Node.js.
There is an ongoing effort to provide a mingw port of Node.js. Version 0.3.6+ can be build that way.
However that is still experimental and anything but ready for more than quick and dirty development. Even in case this version matures, I suppose that it will always lag behind the *nix versions, mainly due to the fact that the event loop implementations that Node uses were originally written for those systems and APIs.
The windows version may become stable for development at some point in the future, but I hardly doubt it will ever be usable for production.
July 2011 Update:
#nodejs v0.5.1 is the first to ship with an official Windows executable. We're hoping to get some good feedback.
Microsoft has officially gotten involved with joyent in making node.js work natively on windows.
If one or two Windows C++ developers would put in the effort, then they could fill the gaps in the native Windows version and produce a node.js implementation that would be usable for production.
For now, there is a working Cygwin version and I don't know of any testing that shows it to be unsuitable for production. It certainly works fine (version 0.5.0pre) for development.
Have a look at:
http://www.rafaljonca.org/d/nodejs-windows
Which is based on the work of these guys here
http://node-js.prcn.co.cc/
Both good ways of getting node on windows if you dont have cygwin. However after many heartaches I found developing Node stuff on windows easiest by just using virtualbox with the ubuntu image.
Tnx
GT
I am strictly a Windows Dev and I have wanted to mess around with Node.js for quite a while.
It looks like Microsoft, Rackspace.com and the Node.js team are planning on working together port Node.js to Windows.
So, it's not hear yet but it should be soon. w00t!
The Official Node.js Blog
The first stable version has been released: Release details here.
Be sure to check for the latest version as the link above will go out of date.
I'm very interested in Hypertable DB, and im currently developing a crawler and indexer in Go-lang, unfortunately there's no binding available for the languange. I'm having a difficulties in compiling swig and hypertable c++ client (too many errors) and thrift don't have a working support for go-lang, is there a way to connect directly to hypertable's thriftbroker by straightforward coding from go? or any suggestion to access hypertable from go?
Thanks.
There may not be Thrift support in Go, but it appears there will soon be Go support in Thrift:
https://issues.apache.org/jira/browse/THRIFT-625
It appears that the code from this standalone project has been checked into the trunk of Thrift, and will appear in some future release (maybe version 0.7). One of those two (the development version of Thrift or the standalone project should get you started).
I need to embed a tiny webserver in a compiled jsfl external library for Adobe Flash CS4 so that an outside process can communicate with it. The external library will be a Carbon bundle on Mac and a set of dlls on Windows, so the webserver will need to be embedded/loaded from C/C++ code with no external dependencies like Ruby. Most of the tiny webservers like fnord or mini-httpd have never been ported to the Mac or Windows but are mostly intended to be compiled on Linux. I was thinking of using a Lua based embedded webserver but not sure if that would work or not. Are there any embedded webservers that are easier than others to port to Windows and Mac?
All right, I finally answered this. After evaluating several webservers I found a gem, Mongoose. Mongoose is a very small embeddable web server written in C that compiles and runs easily on Linux, Mac, and Windows (there is an even a link in the wiki to getting it to run on the iPhone). Many webservers say they do this but Mongoose was really easy to get up and running. It just did exactly what I expected a little web server to do with minimal fuss. My previous approach, to use libevent or libev, I found a bit too hard, mostly because of threading issues I faced with my main GUI thread. Mongoose came with support for CGI and PHP but I actually found the C based handlers very easy to write so I stuck with that.
Webrick and Mongrel run on both.
I thought of one other idea that is easier than Lua that I will try: using a webserver built with libevent. All I really need to do is serve up one file and I don't need any other HTTP features so something like the following might work:
http://3.rdrail.net/blog/libevent-webserver-in-40-lines-of-c/
I will report back.