import { MiddlewareCallback } from '.' ; import GleeMessage from '../lib/message' ; export default ( message , next ) => { if ( message . payload instanceof Buffer ) { message . payload = message . payload . toString ( ) ; } next ( ) ; } ;