i made below code to make sono connection with oak
import { SONO , OAK } from './Dependencies.ts'
const { Application } = OAK
const { Sono } = SONO
const app = new Application()
const sono = new Sono()
app.listen({ port: parseInt(Deno.env.get('PORT')!) })
app.use((context, next) => {
if (context.request.method == 'GET' && context.request.url.pathname == '/sono') {
sono.connect(context.request.originalRequest, () => {
sono.emit('new client connected')
})
} else { next() }
})
./Dependencies.ts
import * as SONO from 'https://deno.land/x/sono@v1.1/mod.ts'
import * as OAK from 'https://deno.land/x/oak@v10.1.1/mod.ts'
export { SONO, OAK }
but it wont work because oak's context.request.originalRequest does not includes bufWriter and bufReader but deno's ServerRequest have them