This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python 3 | |
import struct | |
import socketserver | |
from base64 import b64encode | |
from hashlib import sha1 | |
import email | |
class WebSocketsHandler(socketserver.StreamRequestHandler): | |
magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' |