Socket connector based on Swift