mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
This commit is contained in:
parent
6ecfa3df8f
commit
ef1716492e
@ -138,7 +138,7 @@ object frmMain: TfrmMain
|
||||
Left = 8
|
||||
Top = 72
|
||||
Width = 340
|
||||
Height = 69
|
||||
Height = 161
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -13
|
||||
|
@ -73,8 +73,15 @@ begin
|
||||
port := Copy(s, Pos(':', s) + 1, length(s));
|
||||
stomp.SetUserName(edtUserName.Text);
|
||||
stomp.SetPassword(edtPassword.Text);
|
||||
stomp.Connect('localhost', 61613, 'myclientid', TStompAcceptProtocol.STOMP_Version_1_0);
|
||||
th := TStompClientListener.Create(stomp, Self);
|
||||
try
|
||||
stomp.Connect('localhost', 61613, 'myclientid', TStompAcceptProtocol.STOMP_Version_1_0);
|
||||
th := TStompClientListener.Create(stomp, Self);
|
||||
except
|
||||
on E: Exception do
|
||||
begin
|
||||
ShowMessage(E.ClassName + sLineBreak + E.Message);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TForm1.Button3Click(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user