# \OpenTokRole

Defines values for the role parameter of the OpenTok.OpenTok.generateToken() method.

## Summary

Methods
Properties
Constants
No public methods found
No public properties found
SUBSCRIBER
PUBLISHER
MODERATOR
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
abstract

File
  Role.php
Package
Class hierarchy
  \OpenTok\Util\BasicEnum
  \OpenTok\Role

## Tags

todo |

## Constants

### SUBSCRIBER

    SUBSCRIBER

A subscriber can only subscribe to streams.

#

## Tags

todo |

### PUBLISHER

    PUBLISHER

A publisher can publish streams, subscribe to streams, and signal. (This is the default value if you do not set a role.)

#

## Tags

todo |

### MODERATOR

    MODERATOR

In addition to the privileges granted to a publisher, in clients using the OpenTok.js 2.2 library, a moderator can call the <code>forceUnpublish()</code> and <code>forceDisconnect()</code> method of the Session object.

#

## Tags

todo |

### Role.php