Created
September 16, 2017 01:49
-
-
Save anonymous/5bb0f245567c8f6f17503741e62e7436 to your computer and use it in GitHub Desktop.
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
void Start() { | |
irc.joinRoom("william_tgf"); | |
StartCoroutine("getMessage"); | |
} | |
void OnDestroy() | |
{ | |
irc.leaveRoom(); | |
} | |
public IEnumerator getMessage() | |
{ | |
serverStream = irc.tcpClient.GetStream(); | |
int buffsize = 0; | |
byte[] inStream = new byte[10025]; | |
buffsize = irc.tcpClient.ReceiveBufferSize; | |
while (true) | |
{ | |
readData = irc.readMessage(); | |
msg(); | |
yield return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment