Last active
March 21, 2017 02:59
-
-
Save pandurang90/8b7484bfa4a74ab382d0 to your computer and use it in GitHub Desktop.
opentok session creation
This file contains hidden or 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
class ChatsController < ApplicationController | |
def chat | |
opentok = OpenTok::OpenTok.new OPENTOK_API_KEY, OPENTOK_SECRET_KEY | |
@session = opentok.create_session | |
@session_id = @session.session_id | |
# generate opentok token | |
@token = session.generate_token | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment