<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Andy<br>
    You are right to find it hard to believe.<br>
    Initial tests indicated that it was all broken for Safari. However
    further test have shown this:<br>
    <br>
    5.1.7-- draft-76<br>
    6.1 --
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    rfc-6455<br>
    7.0.3 -- rfc-6455<br>
    <br>
    Tested using websocketstest.com<br>
    <br>
    Thanks for your patience.<br>
    <br>
    Regards<br>
    Graham<br>
    <br>
    <div class="moz-cite-prefix">On 06/11/13 21:36, "Andy Green (林安廸)"
      wrote:<br>
    </div>
    <blockquote cite="mid:527AB679.6050004@warmcat.com" type="cite">On
      06/11/13 20:09, the mail apparently from Graham Newton included:
      <br>
      <blockquote type="cite">Andy
        <br>
        I realise that you have good reasons for doing this but I would
        like to
        <br>
        flag that this is causing me an issue as well.
        <br>
        This is just to indicate that aleksandr is not the only one!!
        <br>
        I know that Apple are a pain in this respect but in the real
        world we
        <br>
        have to deal with them.
        <br>
      </blockquote>
      <br>
      Is it really true that "Safari" as a whole does not support
      anything later than 00 / 76?
      <br>
      <br>
      <a class="moz-txt-link-freetext" href="http://caniuse.com/websockets">http://caniuse.com/websockets</a>
      <br>
      <br>
      says that 6.0, 6.1 and 7.0 "support websockets", does that mean
      the released RFC or the old stuff?  No version of Safari supports
      the released version of the spec?  It's hard to believe.
      <br>
      <br>
      -Andy
      <br>
      <br>
      <br>
      <blockquote type="cite">Regards
        <br>
        Graham
        <br>
        <br>
        On 06/11/13 10:07, Trac wrote:
        <br>
        <blockquote type="cite">#46: Does not work with Safari for
          Windows and Safari for iOS
          <br>
          ------------------------------------+------------------------
          <br>
             Reporter:  aleksandr.gutenev      |      Owner:
          <br>
                 Type:  enhancement            |     Status:  closed
          <br>
             Priority:  major                  |  Milestone:
          <br>
            Component:  libwebsockets library  |    Version:
          <br>
          Resolution:  wontfix                |   Keywords:  Safari iOS
          <br>
          ------------------------------------+------------------------
          <br>
          Changes (by agreen):
          <br>
          <br>
            * status:  new => closed
          <br>
            * resolution:   => wontfix
          <br>
          <br>
          <br>
          Old description:
          <br>
          <br>
          <blockquote type="cite">Safari uses old version of !WebSocket
            protocol.
            <br>
            <br>
            Its request look like this:
            <br>
            {{{
            <br>
            GET / HTTP/1.1
            <br>
            Upgrade: WebSocket
            <br>
            Connection: Upgrade
            <br>
            Host: 172.28.100.5
            <br>
            Origin:<a class="moz-txt-link-freetext" href="http://172.28.100.5">http://172.28.100.5</a>
            <br>
            Sec-WebSocket-Key1: J  g1 8 e4 43X6T76  m0V   Sc  0u
            <br>
            Sec-WebSocket-Key2: 38K+   9207FV|  li8 o92  {q8
            <br>
            <br>
             NbEMq1
            <br>
            }}}
            <br>
            <br>
            As I can see, WSI_TOKEN_KEY1 and WSI_TOKEN_KEY2 are parsed
            but not used.
            <br>
            <br>
            Any plans on supporting this?
            <br>
          </blockquote>
          New description:
          <br>
          <br>
            Safari uses old version of !WebSocket protocol.
          <br>
          <br>
            Its request look like this:
          <br>
            {{{
          <br>
            GET / HTTP/1.1
          <br>
            Upgrade: WebSocket
          <br>
            Connection: Upgrade
          <br>
            Host: 172.28.100.5
          <br>
            Origin:<a class="moz-txt-link-freetext" href="http://172.28.100.5">http://172.28.100.5</a>
          <br>
            Sec-WebSocket-Key1: J  g1 8 e4 43X6T76  m0V   Sc  0u
          <br>
            Sec-WebSocket-Key2: 38K+   9207FV|  li8 o92  {q8
          <br>
          <br>
            NbEMq1
          <br>
            }}}
          <br>
          <br>
            As I can see, WSI_TOKEN_KEY1 and WSI_TOKEN_KEY2 are parsed
          but not used.
          <br>
          <br>
            Any plans on supporting this?
          <br>
          <br>
          --
          <br>
          <br>
          Comment:
          <br>
          <br>
            Yes that version is very old and before the first official
          version of the
          <br>
            standard.
          <br>
          <br>
            Older versions of libwebsockets supported it but I took it
          out since the
          <br>
            code to support it became untested cruft.  Anything that's
          getting
          <br>
            maintained in the last year is using he release version of
          the protocol
          <br>
            definition.
          <br>
          <br>
            So the problem is more that Safari doesn't support the
          release version of
          <br>
            websockets standard rather than something libwebsockets
          should do.
          <br>
          <br>
          --
          <br>
          Ticket
URL:<a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org/trac/libwebsockets/ticket/46#comment:1"><http://libwebsockets.org/trac/libwebsockets/ticket/46#comment:1></a><br>
          libwebsockets<a class="moz-txt-link-rfc2396E" href="http://libwebsockets.org"><http://libwebsockets.org></a>
          <br>
          libwebsockets C library
          <br>
          _______________________________________________
          <br>
          Libwebsockets mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:Libwebsockets@ml.libwebsockets.org">Libwebsockets@ml.libwebsockets.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://ml.libwebsockets.org/mailman/listinfo/libwebsockets">http://ml.libwebsockets.org/mailman/listinfo/libwebsockets</a>
          <br>
        </blockquote>
        <br>
        --
        <br>
        Graham Newton
        <br>
        Senior Software Engineer
        <br>
------------------------------------------------------------------------
        <br>
        Peavey Digital Research
        <br>
        A Division of Peavey Electronics Corporation
        <br>
        <br>
        <br>
        Phone     +44 1865 734397
        <br>
        Direct     +44 1865 734397
        <br>
        Email     <a class="moz-txt-link-abbreviated" href="mailto:gnewton@peavey-eu.com">gnewton@peavey-eu.com</a>
        <br>
        Web     <a class="moz-txt-link-abbreviated" href="http://www.peaveycommercialaudio.com">www.peaveycommercialaudio.com</a>
        <br>
        <a class="moz-txt-link-rfc2396E" href="http://www.peaveycommercialaudio.com"><http://www.peaveycommercialaudio.com></a> - mm.peavey.com
        <br>
        <a class="moz-txt-link-rfc2396E" href="http://mm.peavey.com"><http://mm.peavey.com></a> - <a class="moz-txt-link-abbreviated" href="http://www.crestaudio.com">www.crestaudio.com</a>
        <a class="moz-txt-link-rfc2396E" href="http://www.crestaudio.com"><http://www.crestaudio.com></a>
        <br>
        - aa.peavey.com <a class="moz-txt-link-rfc2396E" href="http://aa.peavey.com"><http://aa.peavey.com></a> -
        <a class="moz-txt-link-abbreviated" href="http://www.peaveyoxford.com">www.peaveyoxford.com</a>
        <br>
        <a class="moz-txt-link-rfc2396E" href="http://www.peaveyoxford.com"><http://www.peaveyoxford.com></a>
        <br>
        <br>
        <br>
        *PEAVEY COMMERCIAL AUDIO* - Great Folds Road, Corby,
        Northamptonshire,
        <br>
        NN18 9ET UK
        <br>
        *PEAVEY DIGITAL RESEARCH* - 6 Elm Place, Eynsham, Oxfordshire
        OX29 4BD UK
        <br>
        *PEAVEY ITALIA* - Via P.La Torre 21, Zona Ind.le Cerretano,
        60022
        <br>
        Castelfidardo An, Italy
        <br>
        *PEAVEY CHINA* - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou,
        Shenzhen
        <br>
        China 518067
        <br>
        *PEAVEY ELECTRONICS CORPORATION* - 5022 Hartley Peavey Drive,
        Meridian,
        <br>
        MS 39305 USA
        <br>
        <br>
        <br>
        Peavey Electronics Limited is a registered company in England
        & Wales,
        <br>
        Company Registration No.: 01249126
        <br>
        Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY
        NORTHAMPTONSHIRE.
        <br>
        NN18 9ET
        <br>
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        Libwebsockets mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Libwebsockets@ml.libwebsockets.org">Libwebsockets@ml.libwebsockets.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://ml.libwebsockets.org/mailman/listinfo/libwebsockets">http://ml.libwebsockets.org/mailman/listinfo/libwebsockets</a>
        <br>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <!-- Begin Peavey Digital Research e-mail signature - last modified 04/10/2012 by Stephen Joy -->
      <table cellpadding="0" cellspacing="0" width="90%">
        <tbody>
          <tr>
            <td
style="font-size:12.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Graham
              Newton</td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Senior
              Software Engineer</td>
          </tr>
          <tr>
            <td>
              <hr color="#0000A0"></td>
          </tr>
          <tr>
            <td
style="font-size:10.0pt;font-weight:bold;font-family:Arial,sans-serif;color:black">Peavey
              Digital Research</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">A
              Division of Peavey Electronics Corporation</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"
              width="50">Phone</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Direct</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">+44
              1865 734397</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Email</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a class="moz-txt-link-abbreviated" href="mailto:gnewton@peavey-eu.com">gnewton@peavey-eu.com</a></td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black">Web</td>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><a
                href="http://www.peaveycommercialaudio.com">www.peaveycommercialaudio.com</a>
              -
              <a href="http://mm.peavey.com">mm.peavey.com</a> -
              <a href="http://www.crestaudio.com">www.crestaudio.com</a>
              -
              <a href="http://aa.peavey.com">aa.peavey.com</a> -
              <a href="http://www.peaveyoxford.com">www.peaveyoxford.com</a>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                COMMERCIAL AUDIO</b> - Great Folds Road, Corby,
              Northamptonshire, NN18 9ET UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                DIGITAL RESEARCH</b> - 6 Elm Place, Eynsham, Oxfordshire
              OX29 4BD UK</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ITALIA</b> - Via P.La Torre 21, Zona Ind.le Cerretano,
              60022 Castelfidardo An, Italy</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                CHINA</b> - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou,
              Shenzhen China 518067</td>
          </tr>
          <tr>
            <td
style="font-size:8.0pt;font-weight:normal;font-family:Arial,sans-serif;color:black"><b>PEAVEY
                ELECTRONICS CORPORATION</b> - 5022 Hartley Peavey Drive,
              Meridian, MS 39305 USA</td>
          </tr>
        </tbody>
      </table>
      <br>
      <table cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td
style="font-size:7.0pt;font-weight:normal;font-family:Arial,sans-serif;color:#929292">Peavey
              Electronics Limited is a registered company in England
              & Wales, Company Registration No.: 01249126
              <br>
              Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY
              NORTHAMPTONSHIRE. NN18 9ET</td>
          </tr>
        </tbody>
      </table>
      <!-- End Peavey Digital Research e-mail signature -->
    </div>
  </body>
</html>