Some time ago I found Joe Armstrong's example on Erlang and websocket, but I couldn't get it work.
I fixed an error and a couple of warnings in the Erlang code but with Apache I wasn't able to get a good result.
Can anybody give me some hints with a really simple example? Do I need to put the web page with the JavaScript inside the Apache directory as for normal PHP files?
Joe's websocket example is outdated and relies on an obsolete version of the protocol. Up-to-date browsers use a more recent version (draft-00)
As of today, a nice erlang implementation is available from misultin. Tested and compatible with current browsers:
https://github.com/ostinelli/misultin/blob/master/src/misultin_websocket.erl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With