Created
January 3, 2020 10:27
-
-
Save Krishna21Soni13/e2f299ce3c3732dea200c88635767f95 to your computer and use it in GitHub Desktop.
Leave the chat room.
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
func leaveChatRoom(nickname: String, completion: () -> Void) { | |
guard let socket = manager?.defaultSocket else{ | |
return | |
} | |
socket.emit(kExitUser, nickname) | |
completion() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment