* Generates uri for connection. * * @private
()
| 159 | * @private |
| 160 | */ |
| 161 | protected uri() { |
| 162 | const schema = this.opts.secure ? "https" : "http"; |
| 163 | const query: { b64?: number; sid?: string } = this.query || {}; |
| 164 | |
| 165 | // cache busting is forced |
| 166 | if (false !== this.opts.timestampRequests) { |
| 167 | query[this.opts.timestampParam] = randomString(); |
| 168 | } |
| 169 | |
| 170 | if (!this.supportsBinary && !query.sid) { |
| 171 | query.b64 = 1; |
| 172 | } |
| 173 | |
| 174 | return this.createUri(schema, query); |
| 175 | } |
| 176 | |
| 177 | abstract doPoll(); |
| 178 | abstract doWrite(data: string, callback: () => void); |
nothing calls this directly
no test coverage detected