Skip to content

Instantly share code, notes, and snippets.

Created September 16, 2017 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5bb0f245567c8f6f17503741e62e7436 to your computer and use it in GitHub Desktop.
Save anonymous/5bb0f245567c8f6f17503741e62e7436 to your computer and use it in GitHub Desktop.
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