Last active
October 12, 2017 07:03
-
-
Save ayberkanilatsiz/627035b93931416276d91a34b5404e31 to your computer and use it in GitHub Desktop.
createSocket
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
constructor(props){ | |
this.socket = SocketIOClient('http://192.168.1.183:3000'); //Local ip'niz yada http://locahost:3000 olmalı | |
this.socket.on('messages', this.onReceivedMessage); | |
this.socket.on('userId', this.getUserId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment