Created
January 3, 2020 10:31
-
-
Save Krishna21Soni13/f157b655f7fb393df81da05e77dcb649 to your computer and use it in GitHub Desktop.
To send the message.
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 sendMessage(message: String, withNickname nickname: String) { | |
guard let socket = manager?.defaultSocket else { | |
return | |
} | |
socket.emit("chatMessage", nickname, message) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment