public void OnMessage(IntPtr data, int len) { var ms = new MessageStream(data, len); var reader = ms.BeginRead(); var hellofromnim = reader.read_string(); Debug.Log(hellofromnim); }