[erlang-questions] yet another Erlang WebSocket implementation

Andy W. Song <>
Wed Aug 3 07:47:18 CEST 2011


Good to hear that. Just tested that my client can talk to the new hybi-10
version of misultin. I found two things interesting:
1. In the handshake I use "Upgrade: WebSocket", while you use "Upgrade:
websocket". Obviously yours is correct because your version is inline with
the latest spec. Mine is old. The change happened between hybi-03 and
hybi-04. I didn't find out why.
2. Opcode 0x1 and 0x2. Is it only a hint for how to interpret the content of
the frame while doesn't affect the content body at all just as MIME in
HTTP?

Might do more test later.

Thanks
Andy

On Wed, Aug 3, 2011 at 1:20 AM, Roberto Ostinelli <>wrote:

> hi andy,
>
> many code portions of this project of yours have been integrated into
> misultin 0.8.1-dev. i've added behaviours to support various websocket
> implementations.
>
> please feel free to check it out and comment.
>
> https://github.com/ostinelli/misultin/tree/dev
>
> r.
>
>
> 2011/7/29 Andy W. Song <>
>
>>  Hi,
>>
>> Not to reinvent the wheel, just as an exercise for learning Erlang.
>>
>> Here <https://github.com/awsong/erl_websocket> you go. Copied some ideas
>> from this <https://github.com/MiCHiLU/erlang_websocket> project as well
>> as misultin and cowboy.
>>
>> It is not complete right now. Doesn't support segment yet, which I hope is
>> not used very often. And it should be fairly easy to replace the current
>> implementation in misultin.
>>
>> Enjoy.
>>
>> Andy
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>


-- 
---------------------------------------------------------------
有志者,事竟成,破釜沉舟,百二秦关终属楚
苦心人,天不负,卧薪尝胆,三千越甲可吞吴
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110803/81608826/attachment.html>


More information about the erlang-questions mailing list