osu-api-v2-js
    Preparing search index...

    Function getHeaders

    • Get the headers you might require in order to create a WebSocket connection!

      Parameters

      Returns { [key: string]: any }

      An object with the proper Authorization: Bearer header, in addition to the headers used in other requests, which are all specified in API.headers

      Feel free to use this and ignore API.generateChatWebsocket if for example you're gonna use a third party package for handling websockets