Have you wrapped this script in an XScript section, token replacement #{} only works in XScript sections or within ext markup.
Also use Firefox and either open up Web Developer Tools or get Firebug, see what the error is via the console.
Look at the actual HTML in firebug and check that the store token is replaced with something like App.mystore.
Haven't tried SignalR, pretty cool stuff but have no need for it yet.
<ext:Container ID="cntScript" runat="server">
<HtmlBin>
<ext:XScript ID="xScript" runat="server">
<script type="text/javascript">
$(document).ready(function () {
$.connection.hub.url = "http://mydomain.fr/signalr";
var proxy = $.connection.hub.createHubProxy("myHub");
proxy.on('addMessage', function (message) {
Ext.net.Notification.show({
hideFx: {
args: ['r', {}],
fxName: 'slideOut'
},
showFx: {
args: ['b', {}],
fxName: 'slideIn'
},
pinEvent: 'click',
html: message,
});
// If I try to add #{myStore}.reload(); the page never loads on init.
#{myStore}.reload();
});
$.connection.hub.start().done(function () {
});
});
</script>
</ext:XScript>
</HtmlBin>
</ext:Container>