MessageHandler.ts 150 Bytes
import { Connection } from "../../connection/Connection";

export interface MessageHandler<T> {
  handle(connection: Connection, message: T): void;
}