public void enableEncryption(SecretKey sharedSecret) {
updatePipeline("encryption", new EncryptionHandler(sharedSecret));
}
public void enableCompression(int threshold) {
send(new SetCompressionMessage(threshold));
updatePipeline("compression", new CompressionHandler(threshold));
}