diff --git a/src/Lime/Protocol/Client/Channel.ts b/src/Lime/Protocol/Client/Channel.ts index 7a6c970..4435665 100644 --- a/src/Lime/Protocol/Client/Channel.ts +++ b/src/Lime/Protocol/Client/Channel.ts @@ -4,7 +4,6 @@ import Command, { CommandListener, CommandMethod, CommandStatus } from "../Comma import Notification, { NotificationListener, NotificationEvent } from "../Notification"; import Session, { SessionListener, SessionState } from "../Session"; import Transport from "../Network/Transport"; -import * as Promise from "bluebird"; export interface MessageChannel extends MessageListener { sendMessage(message: Message): void; @@ -23,7 +22,7 @@ export interface SessionChannel extends SessionListener { } export interface CommandProcessor extends CommandListener { - processCommand(command: Command): Promise; + processCommand(command: Command): Promise; } abstract class Channel implements MessageChannel, CommandChannel, NotificationChannel, SessionChannel, CommandProcessor { @@ -105,7 +104,7 @@ abstract class Channel implements MessageChannel, CommandChannel, NotificationCh } abstract onMessage(message: Message): void; - processCommand(command: Command, timeout = this.commandTimeout): Promise { + processCommand(command: Command, timeout = this.commandTimeout): Promise { const responsePromise = new Promise(resolve => { this._commandResolves[command.id] = resolve; }); diff --git a/src/Lime/Protocol/Client/ClientChannel.ts b/src/Lime/Protocol/Client/ClientChannel.ts index 023de1e..eb8727d 100644 --- a/src/Lime/Protocol/Client/ClientChannel.ts +++ b/src/Lime/Protocol/Client/ClientChannel.ts @@ -5,7 +5,6 @@ import Session, { SessionCompression, SessionEncryption, SessionState } from ".. import Channel from "./Channel"; import Transport from "../Network/Transport"; import Authentication from "../Security/Authentication"; -import * as Promise from "bluebird"; export default class ClientChannel extends Channel { diff --git a/src/Lime/Protocol/Network/Transport.ts b/src/Lime/Protocol/Network/Transport.ts index 7daeb9a..38c93a4 100644 --- a/src/Lime/Protocol/Network/Transport.ts +++ b/src/Lime/Protocol/Network/Transport.ts @@ -1,6 +1,5 @@ import Envelope, { EnvelopeListener } from "../Envelope"; import { SessionCompression, SessionEncryption } from "../Session"; -import * as Promise from "bluebird"; interface Transport extends EnvelopeListener { open(uri: string): Promise;