Can just compare the pointers. https://github.com/gorilla/websocket/issues/535#issuecomment-523170241