Skip to content

Instantly share code, notes, and snippets.

View imfede's full-sized avatar

Federico Cergol imfede

View GitHub Profile
imfede /
Created November 9, 2018 22:40
A very simple WebSocketHandler to use with a socketserver.ForkingTCPServer in python3
import http.server
import struct
from base64 import b64encode
from hashlib import sha1
import errno, socket #for socket exceptions
import threading
class WebSocketError(Exception):
imfede /
Created May 26, 2015 16:45

Keybase proof

I hereby claim:

  • I am imfede on github.
  • I am imfede ( on keybase.
  • I have a public key whose fingerprint is 465E 2A66 B3DC 83E5 F86B 5D95 9175 112F 037B 9C58

To claim this, I am signing this object: