Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang and websockets

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?

like image 251
pdn Avatar asked Dec 01 '22 04:12

pdn


1 Answers

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

like image 118
Eric Avatar answered Dec 04 '22 08:12

Eric