check-origin_wsh.py 362 B

12345678910111213
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. from mod_pywebsocket import msgutil
  5. def web_socket_do_extra_handshake(request):
  6. pass # Always accept.
  7. def web_socket_transfer_data(request):
  8. msgutil.send_message(request, request.ws_origin)