Exemplo n.º 1
0
 private function serializeHeaders()
 {
     $str = '';
     foreach ($this->headers as $k => $v) {
         $str .= $k . " " . $v . "\r\n";
     }
     # mamta add key 3 needed for the handshake/swithching protocol compatible with glassfish
     $key3 = WebSocketFunctions::genKey3();
     $str .= "\r\n" . $key3;
     return $str;
 }