Skip to content

enable Assert (self.readyState != SR_CONNECTING) #24

Closed
@www16852

Description

@www16852

Hi,
im getting this Assert NSAssert(self.readyState != SR_CONNECTING, @"Invalid State: Cannot call send: until connection is open");
in - (void)send:(id)data;

check code ,I think the problem is that :
StompClient.swift 308
socket?.send(StompCommands.commandPing)

maybe I can alter:
if socket?.readyState == .OPEN {
socket?.send(StompCommands.commandPing)
}

Or have other solving??

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions